Skip to content

Commit b6b59b6

Browse files
author
Anirav Kareddy
committed
removed setting the secureRandom attribute in the builder for AES + RSA keyrings in all of the test cases
1 parent 887ffd0 commit b6b59b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/software/amazon/encryption/s3/S3EncryptionClientMatDescTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void setUp() throws NoSuchAlgorithmException {
5353
public void testAesMaterialsDescriptionInObjectMetadata() {
5454
AesKeyring aesKeyring = AesKeyring.builder()
5555
.wrappingKey(AES_KEY)
56-
.secureRandom(new SecureRandom())
56+
5757
.materialsDescription(MaterialsDescription.builder()
5858
.put("version", "1.0")
5959
.build())
@@ -123,7 +123,7 @@ public void testRsaMaterialsDescriptionInObjectMetadata() {
123123
public void testAesMaterialsDescriptionInInstructionFile() {
124124
AesKeyring aesKeyring = AesKeyring.builder()
125125
.wrappingKey(AES_KEY)
126-
.secureRandom(new SecureRandom())
126+
127127
.materialsDescription(MaterialsDescription.builder()
128128
.put("version", "1.0")
129129
.build())
@@ -227,7 +227,7 @@ public void testRsaMaterialsDescriptionInInstructionFile() {
227227
public void testAesKeyringMatDescOverridesPutObjectEncryptionContext() {
228228
AesKeyring aesKeyring = AesKeyring.builder()
229229
.wrappingKey(AES_KEY)
230-
.secureRandom(new SecureRandom())
230+
231231
.materialsDescription(MaterialsDescription.builder()
232232
.put("version", "1.0")
233233
.build())

0 commit comments

Comments
 (0)