in sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/encryption/providers/WrappedMaterialsProvider.java [135:145]
public EncryptionMaterials getEncryptionMaterials(EncryptionContext context) {
try {
if (macKey != null) {
return new WrappedRawMaterials(wrappingKey, unwrappingKey, macKey, description);
} else {
return new WrappedRawMaterials(wrappingKey, unwrappingKey, sigPair, description);
}
} catch (GeneralSecurityException ex) {
throw new DynamoDBMappingException("Unable to encrypt envelope key", ex);
}
}