Skip to content

Commit 78e956b

Browse files
Remove requirement that wrappingKey and unwrappingKey be non null
1 parent 93f9691 commit 78e956b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/amazonaws/encryptionsdk/internal/JceKeyCipher.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import java.security.PublicKey;
3030
import java.util.Map;
3131

32-
import static org.apache.commons.lang3.Validate.notNull;
33-
3432
/**
3533
* Abstract class for encrypting and decrypting JCE data keys.
3634
*/
@@ -64,9 +62,6 @@ public static JceKeyCipher rsa(PublicKey wrappingKey, PrivateKey unwrappingKey,
6462
}
6563

6664
JceKeyCipher(Key wrappingKey, Key unwrappingKey) {
67-
notNull(wrappingKey, "wrappingKey is required");
68-
notNull(wrappingKey, "unwrappingKey is required");
69-
7065
this.wrappingKey = wrappingKey;
7166
this.unwrappingKey = unwrappingKey;
7267
}

0 commit comments

Comments
 (0)