We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2fa4a1 commit 51cb94aCopy full SHA for 51cb94a
src/main/java/software/amazon/encryption/s3/S3EncryptionClient.java
@@ -666,7 +666,11 @@ public Builder rsaKeyPair(PartialRsaKeyPair partialRsaKeyPair) {
666
* @return Returns a reference to this object so that method calls can be chained together.
667
*/
668
public Builder kmsKeyId(String kmsKeyId) {
669
- this._kmsKeyId = kmsKeyId;
+ try {
670
+ Class.forName("software.amazon.awssdk.services.kms.KmsClient");
671
+ } catch (ClassNotFoundException e) {
672
+ throw new RuntimeException("software.amazon.awssdk:kms is required to set up with KMS key", e);
673
+ }
674
checkKeyOptions();
675
676
return this;
0 commit comments