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 |
|---|---|
static EncryptionContext.Builder |
builder()
Return a new builder that can be used to construct an
EncryptionContext |
java.util.Map<java.lang.String,software.amazon.awssdk.services.dynamodb.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.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.
|
EncryptionContext.Builder |
toBuilder()
Converts an existing
EncryptionContext into a builder that can be used to mutate and make a new version. |
java.lang.String |
toString() |
public static EncryptionContext.Builder builder()
EncryptionContextEncryptionContext.Builder.public java.lang.String getTableName()
public java.util.Map<java.lang.String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> getAttributeValues()
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 EncryptionContext.Builder toBuilder()
EncryptionContext into a builder that can be used to mutate and make a new version.EncryptionContext.Builder with all the fields filled out to match the current object.public java.lang.String toString()
toString in class java.lang.Object