Note: The AWS Encryption SDK for Java does not support the {@code KmsAsyncClient} + * interface. + * * @see KmsMasterKeyProvider.Builder#customRegionalClientSupplier(RegionalClientSupplier) */ public Builder customRegionalClientSupplier(RegionalClientSupplier regionalClientSupplier) { @@ -125,6 +128,9 @@ public Builder customRegionalClientSupplier(RegionalClientSupplier regionalClien * KmsClientBuilder} to configure KMS clients. Note that the region set on this builder will be * ignored, but all other settings will be propagated into the regional clients. * + *
Note: The AWS Encryption SDK for Java does not support the {@code KmsAsyncClient}
+ * interface.
+ *
* @see KmsMasterKeyProvider.Builder#builderSupplier(Supplier)
*/
public Builder builderSupplier(Supplier Note: The AWS Encryption SDK for Java does not support the {@code KmsAsyncClient}
+ * interface.
+ *
* @param regionalClientSupplier
* @return
*/
@@ -110,6 +113,9 @@ public Builder customRegionalClientSupplier(RegionalClientSupplier regionalClien
* #customRegionalClientSupplier(RegionalClientSupplier)} will cause an {@link
* IllegalStateException} to be thrown.
*
+ * Note: The AWS Encryption SDK for Java does not support the {@code KmsAsyncClient}
+ * interface.
+ *
* @param supplier Should return a new {@link KmsClientBuilder} on each invocation.
* @return
*/
diff --git a/src/main/java/com/amazonaws/encryptionsdk/kmssdkv2/RegionalClientSupplier.java b/src/main/java/com/amazonaws/encryptionsdk/kmssdkv2/RegionalClientSupplier.java
index 0716aea1e..0c5ecef8f 100644
--- a/src/main/java/com/amazonaws/encryptionsdk/kmssdkv2/RegionalClientSupplier.java
+++ b/src/main/java/com/amazonaws/encryptionsdk/kmssdkv2/RegionalClientSupplier.java
@@ -9,6 +9,8 @@ public interface RegionalClientSupplier {
* Supplies an {@link KmsClient} instance to use for a given {@link Region}. The {@link
* KmsMasterKeyProvider} will not cache the result of this function.
*
+ * Note: The AWS Encryption SDK for Java does not support the {@code KmsAsyncClient} interface.
+ *
* @param region The region to get a client for
* @return The client to use, or null if this region cannot or should not be used.
*/
diff --git a/src/test/java/com/amazonaws/encryptionsdk/internal/DecryptionHandlerTest.java b/src/test/java/com/amazonaws/encryptionsdk/internal/DecryptionHandlerTest.java
index 7ed598115..728673ec7 100644
--- a/src/test/java/com/amazonaws/encryptionsdk/internal/DecryptionHandlerTest.java
+++ b/src/test/java/com/amazonaws/encryptionsdk/internal/DecryptionHandlerTest.java
@@ -643,6 +643,7 @@ public void withNoMaxEdks() {
decryptionHandler.processBytes(header, 0, header.length, plaintext, 0);
}
+ @Test
public void validSignatureAcrossMultipleBlocks() {
byte[] ciphertext =
getTestMessage(