[java-idp-oidc] branch main updated: Add fix for key generation initialization in test

Phil Smart philip.smart at jisc.ac.uk
Wed Oct 26 09:39:06 UTC 2022


This is an automated email from the git hooks/post-receive script.

philsmart pushed a commit to branch main
in repository java-idp-oidc.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-oidc.git;a=commit;h=d13c362ed2909cb99a4caf9cff4b9322854a9dcb

The following commit(s) were added to refs/heads/main by this push:
     new d13c362e Add fix for key generation initialization in test
d13c362e is described below

commit d13c362ed2909cb99a4caf9cff4b9322854a9dcb
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed Oct 26 10:39:00 2022 +0100

    Add fix for key generation initialization in test
---
 .../plugin/oidc/op/oauth2/profile/impl/ValidateRequestObjectTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateRequestObjectTest.java b/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateRequestObjectTest.java
index 0ba44ab9..9c3bd924 100644
--- a/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateRequestObjectTest.java
+++ b/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateRequestObjectTest.java
@@ -379,8 +379,8 @@ public class ValidateRequestObjectTest {
     public void testRequestObjectSignedWithUnexpectedAlgorithm() throws NoSuchAlgorithmException,
             ComponentInitializationException, URISyntaxException, JOSEException, InvalidAlgorithmParameterException {
         KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC");
-        KeyPair kp = kpg.generateKeyPair();
         kpg.initialize(Curve.P_256.toECParameterSpec());
+        KeyPair kp = kpg.generateKeyPair();
         JWSSigner signer = new ECDSASigner((ECPrivateKey) kp.getPrivate());
         JWTClaimsSet ro = new JWTClaimsSet.Builder().subject("alice").build();
         SignedJWT signed = new SignedJWT(new JWSHeader(JWSAlgorithm.ES256), ro);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list