public final class EncryptionContext extends 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 |
|---|---|
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 as
DynamoDBMapper) 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() |
public String getTableName()
public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getAttributeValues()
public Class<?> getModeledClass()
DynamoDBMapper) this represents the
class being mapped to/from DynamoDB.public Object getDeveloperContext()
EncryptionMaterialsProviders through the DynamoDBEncryptor.public String getHashKeyName()
public String getRangeKeyName()
Copyright © 2021. All rights reserved.