Skip to content

Commit 77f3953

Browse files
committed
fix: ensure algorithmSuite is properly copied in getTableConfig for EnhancedClient
1 parent 1abb2dd commit 77f3953

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DynamoDbEncryption/runtimes/java/src/main/java/software/amazon/cryptography/dbencryptionsdk/dynamodb/enhancedclient/DynamoDbEnhancedClientEncryption.java

+4
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ private static DynamoDbTableEncryptionConfig getTableConfig(
382382
builder = builder.plaintextOverride(configWithSchema.plaintextOverride());
383383
}
384384

385+
if (!Objects.isNull(configWithSchema.algorithmSuiteId())) {
386+
builder = builder.algorithmSuiteId(configWithSchema.algorithmSuiteId());
387+
}
388+
385389
return builder
386390
.allowedUnsignedAttributePrefix(
387391
configWithSchema.allowedUnsignedAttributePrefix()

0 commit comments

Comments
 (0)