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 toEncryptionMaterialsProviders so they can more intelligently select the properEncryptionMaterialsorDecryptionMaterialsfor 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 classEncryptionContext.BuilderBuilder 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.ObjectgetDeveloperContext()This object has no meaning (and will not be set or examined) by any core libraries.StringgetHashKeyName()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.StringgetRangeKeyName()Returns the name of the RangeKey attribute for the record to be encrypted/decrypted.StringgetTableName()Returns the name of the DynamoDB Table this record is associated with.StringtoString()
-
-
-
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 toEncryptionMaterialsProviders 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.
-
-