@Test public void testTableNameOverriddenEncryptionContextOperator() { assertThat(context.getTableName(), not(equalTo(OVERRIDDEN_TABLE_NAME))); DynamoDbEncryptor encryptor = new DynamoDbEncryptor(prov); encryptor.setEncryptionContextOverrideOperator(overrideEncryptionContextTableName(context.getTableName(), OVERRIDDEN_TABLE_NAME)); Map<String, AttributeValue> encryptedItems = EncryptionTestHelper.encryptAllFieldsExcept(encryptor, attribs, context, Collections.emptyList()); Map<String, AttributeValue> decryptedItems = EncryptionTestHelper.decryptAllFieldsExcept(encryptor, encryptedItems, context, Collections.emptyList()); assertThat(decryptedItems, AttrMatcher.match(attribs)); }
void setEncryptionContextOverrideOperator( Function<EncryptionContext, EncryptionContext> encryptionContextOverrideOperator) { this.encryptionContextOverrideOperator = encryptionContextOverrideOperator; }
DynamoDbEncryptor implements DynamoDbEncryptionClient { void setEncryptionContextOverrideOperator( Function<EncryptionContext, EncryptionContext> encryptionContextOverrideOperator) { this.encryptionContextOverrideOperator = encryptionContextOverrideOperator; } }
DynamoDbEncryptor implements DynamoDbEncryptionClient { void setEncryptionContextOverrideOperator( Function<EncryptionContext, EncryptionContext> encryptionContextOverrideOperator) { this.encryptionContextOverrideOperator = encryptionContextOverrideOperator; } protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider, String descriptionBase); protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider); }
DynamoDbEncryptor implements DynamoDbEncryptionClient { void setEncryptionContextOverrideOperator( Function<EncryptionContext, EncryptionContext> encryptionContextOverrideOperator) { this.encryptionContextOverrideOperator = encryptionContextOverrideOperator; } protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider, String descriptionBase); protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider); static Builder builder(); @Override Map<String, AttributeValue> encryptRecord(Map<String, AttributeValue> record,
                                                     DynamoDbEncryptionConfiguration configuration); @Override Map<String, AttributeValue> decryptRecord(Map<String, AttributeValue> record,
                                                     DynamoDbEncryptionConfiguration configuration); }
DynamoDbEncryptor implements DynamoDbEncryptionClient { void setEncryptionContextOverrideOperator( Function<EncryptionContext, EncryptionContext> encryptionContextOverrideOperator) { this.encryptionContextOverrideOperator = encryptionContextOverrideOperator; } protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider, String descriptionBase); protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider); static Builder builder(); @Override Map<String, AttributeValue> encryptRecord(Map<String, AttributeValue> record,
                                                     DynamoDbEncryptionConfiguration configuration); @Override Map<String, AttributeValue> decryptRecord(Map<String, AttributeValue> record,
                                                     DynamoDbEncryptionConfiguration configuration);  }