Class EncryptionContext
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.datamodeling.encryption.EncryptionContext
-
public final class EncryptionContext extends Object
This class serves to provide additional useful data toEncryptionMaterialsProvider
s so they can more intelligently select the properEncryptionMaterials
orDecryptionMaterials
for use. Any of the methods are permitted to return null.For the simplest cases, all a developer needs to provide in the context are:
- TableName
- HashKeyName
- RangeKeyName (if present)
- Author:
- Greg Rubin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptionContext.Builder
Builder class forEncryptionContext
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue>
getAttributeValues()
Returns the DynamoDB record about to be encrypted/decrypted.Object
getDeveloperContext()
This object has no meaning (and will not be set or examined) by any core libraries.String
getHashKeyName()
Returns the name of the HashKey attribute for the record to be encrypted/decrypted.Map<String,String>
getMaterialDescription()
Class<?>
getModeledClass()
When used for an object mapping layer (such asDynamoDBMapper
) this represents the class being mapped to/from DynamoDB.String
getRangeKeyName()
Returns the name of the RangeKey attribute for the record to be encrypted/decrypted.String
getTableName()
Returns the name of the DynamoDB Table this record is associated with.String
toString()
-
-
-
Method Detail
-
getTableName
public String getTableName()
Returns the name of the DynamoDB Table this record is associated with.
-
getAttributeValues
public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getAttributeValues()
Returns the DynamoDB record about to be encrypted/decrypted.
-
getModeledClass
public Class<?> getModeledClass()
When used for an object mapping layer (such asDynamoDBMapper
) this represents the class being mapped to/from DynamoDB.
-
getDeveloperContext
public Object getDeveloperContext()
This object has no meaning (and will not be set or examined) by any core libraries. It exists to allow custom object mappers and data access layers to pass data toEncryptionMaterialsProvider
s through theDynamoDBEncryptor
.
-
getHashKeyName
public String getHashKeyName()
Returns the name of the HashKey attribute for the record to be encrypted/decrypted.
-
getRangeKeyName
public String getRangeKeyName()
Returns the name of the RangeKey attribute for the record to be encrypted/decrypted.
-
-