Skip to content

Commit 9b41d81

Browse files
author
Anirav Kareddy
committed
removed the logic in the reEncryptInstructionFileRequest builder of checking whether a default instruction file suffix was specified for RSA keyring since RSA keyring rotation is supported (not just for creating third-party access to encrypted object in S3)
1 parent 5a04e43 commit 9b41d81

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/software/amazon/encryption/s3/internal/ReEncryptInstructionFileRequest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,6 @@ public ReEncryptInstructionFileRequest build() {
162162
if (!instructionFileSuffix.equals(DEFAULT_INSTRUCTION_FILE_SUFFIX)) {
163163
throw new S3EncryptionClientException("Custom Instruction file suffix is not applicable for AES keyring!");
164164
}
165-
} else if (newKeyring instanceof RsaKeyring) {
166-
if (instructionFileSuffix.equals(DEFAULT_INSTRUCTION_FILE_SUFFIX)) {
167-
throw new S3EncryptionClientException("Instruction file suffix must be different than the default one for RSA keyring!");
168-
}
169165
}
170166
return new ReEncryptInstructionFileRequest(this);
171167
}

0 commit comments

Comments
 (0)