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
  • Constructor Details

  • Method Details

    • getEncryptor

      public DynamoDBEncryptor getEncryptor()
    • transform

      public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> transform(com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer.Parameters<?> parameters)
      Specified by:
      transform in interface com.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 interface com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer