Class EncryptionContext
java.lang.Object
com.amazonaws.services.dynamodbv2.datamodeling.encryption.EncryptionContext
This class serves to provide additional useful data to
EncryptionMaterialsProvider
s so
they can more intelligently select the proper EncryptionMaterials
or DecryptionMaterials
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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the DynamoDB record about to be encrypted/decrypted.This object has no meaning (and will not be set or examined) by any core libraries.Returns the name of the HashKey attribute for the record to be encrypted/decrypted.Class<?>
When used for an object mapping layer (such asDynamoDBMapper
) this represents the class being mapped to/from DynamoDB.Returns the name of the RangeKey attribute for the record to be encrypted/decrypted.Returns the name of the DynamoDB Table this record is associated with.toString()
-
Method Details
-
getTableName
Returns the name of the DynamoDB Table this record is associated with. -
getAttributeValues
Returns the DynamoDB record about to be encrypted/decrypted. -
getModeledClass
When used for an object mapping layer (such asDynamoDBMapper
) this represents the class being mapped to/from DynamoDB. -
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
Returns the name of the HashKey attribute for the record to be encrypted/decrypted. -
getRangeKeyName
Returns the name of the RangeKey attribute for the record to be encrypted/decrypted. -
getMaterialDescription
-
toString
-