Class AttributeEncryptor
java.lang.Object
com.amazonaws.services.dynamodbv2.datamodeling.AttributeEncryptor
- All Implemented Interfaces:
com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer
public class AttributeEncryptor
extends Object
implements com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer
Encrypts all non-key fields prior to storing them in DynamoDB. This must be used with
DynamoDBMapperConfig.SaveBehavior.PUT
or DynamoDBMapperConfig.SaveBehavior.CLOBBER
.
For guidance on performing a safe data model change procedure, please see DynamoDB Encryption Client Developer Guide: Changing your data model
- Author:
- Greg Rubin
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer
com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer.Parameters<T extends Object>
-
Constructor Summary
ConstructorDescriptionAttributeEncryptor
(DynamoDBEncryptor encryptor) AttributeEncryptor
(EncryptionMaterialsProvider encryptionMaterialsProvider) -
Method Summary
Modifier and TypeMethodDescriptiontransform
(com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer.Parameters<?> parameters) untransform
(com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer.Parameters<?> parameters)
-
Constructor Details
-
AttributeEncryptor
-
AttributeEncryptor
-
-
Method Details
-
getEncryptor
-
transform
public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> transform(com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer.Parameters<?> parameters) - Specified by:
transform
in interfacecom.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer
-
untransform
public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> untransform(com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer.Parameters<?> parameters) - Specified by:
untransform
in interfacecom.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer
-