public final class EncryptionContext
extends java.lang.Object
EncryptionMaterialsProviders 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:
| Modifier and Type | Class and Description |
|---|---|
static class |
EncryptionContext.Builder
Builder class for
EncryptionContext. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,com.amazonaws.services.dynamodbv2.model.AttributeValue> |
getAttributeValues()
Returns the DynamoDB record about to be encrypted/decrypted.
|
java.lang.Object |
getDeveloperContext()
This object has no meaning (and will not be set or examined) by any core libraries.
|
java.lang.String |
getHashKeyName()
Returns the name of the HashKey attribute for the record to be encrypted/decrypted.
|
java.util.Map<java.lang.String,java.lang.String> |
getMaterialDescription() |
java.lang.Class<?> |
getModeledClass()
When used for an object mapping layer (such as
DynamoDBMapper) this represents the
class being mapped to/from DynamoDB. |
java.lang.String |
getRangeKeyName()
Returns the name of the RangeKey attribute for the record to be encrypted/decrypted.
|
java.lang.String |
getTableName()
Returns the name of the DynamoDB Table this record is associated with.
|
java.lang.String |
toString() |
public java.lang.String getTableName()
public java.util.Map<java.lang.String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getAttributeValues()
public java.lang.Class<?> getModeledClass()
DynamoDBMapper) this represents the
class being mapped to/from DynamoDB.public java.lang.Object getDeveloperContext()
EncryptionMaterialsProviders through the DynamoDBEncryptor.public java.lang.String getHashKeyName()
public java.lang.String getRangeKeyName()
public java.util.Map<java.lang.String,java.lang.String> getMaterialDescription()
public java.lang.String toString()
toString in class java.lang.Object