@Test(expectedExceptions = DynamoDbEncryptionException.class) public void EcdsaSignedOnlyBadSignature() throws GeneralSecurityException { encryptor = new DynamoDbEncryptor(getMaterialProviderwithECDSA()); Map<String, AttributeValue> encryptedAttributes = EncryptionTestHelper.encryptAllFieldsExcept(encryptor, attribs, context, attribs.keySet()); assertThat(encryptedAttributes, AttrMatcher.invert(attribs)); Map<String, AttributeValue> modifiedEncryptedAttributes = new HashMap<>(encryptedAttributes); modifiedEncryptedAttributes.put("hashKey", AttributeValue.builder().n("666").build()); EncryptionTestHelper.decryptAllFieldsExcept(encryptor, modifiedEncryptedAttributes, context, attribs.keySet()); }
public static Builder builder() { return new Builder(); }
DynamoDbEncryptor implements DynamoDbEncryptionClient { public static Builder builder() { return new Builder(); } }
DynamoDbEncryptor implements DynamoDbEncryptionClient { public static Builder builder() { return new Builder(); } protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider, String descriptionBase); protected  DynamoDbEncryptor(EncryptionMaterialsProvider provider); }
DynamoDbEncryptor implements DynamoDbEncryptionClient { public static Builder builder() { return new Builder(); } 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 { public static Builder builder() { return new Builder(); } 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);  }