Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit dc8b731

Browse files
authored
Increase RSA key size in OauthRequestValidationTest (#241)
1 parent cb9565a commit dc8b731

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/com/microsoft/aad/adal4j/OAuthRequestValidationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private String getRSAjwt() throws NoSuchAlgorithmException, JOSEException {
125125
// RSA signatures require a public and private RSA key pair, the public key
126126
// must be made known to the JWS recipient in order to verify the signatures
127127
KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance("RSA");
128-
keyGenerator.initialize(1024);
128+
keyGenerator.initialize(2048);
129129

130130
KeyPair kp = keyGenerator.genKeyPair();
131131
RSAPublicKey publicKey = (RSAPublicKey)kp.getPublic();

0 commit comments

Comments
 (0)