[java-oidc-common] branch main updated: JCOMOIDC-203 - Relax keyID evaluation for symmetric key JWTs

Codeberg noreply at shibboleth.net
Fri Nov 27 17:33:24 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-oidc-common.

View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/c52395725c9f8273430a4d68bf89612b37fdef06

The following commit(s) were added to refs/heads/main by this push:
     new c5239572 JCOMOIDC-203 - Relax keyID evaluation for symmetric key JWTs
c5239572 is described below

commit c52395725c9f8273430a4d68bf89612b37fdef06
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Nov 27 17:33:17 2026 +0000

    JCOMOIDC-203 - Relax keyID evaluation for symmetric key JWTs
    
      - Ignore keyID for Direct Encryption JWEs.
      - Ignore keyID criteria for HMAC signed JWS.
      - Symmetric keys, especially client_secret-derived credentials, do not
    have a obvious key identifier, and strict matching can reject valid
    JWTs.
    
    https://shibboleth.atlassian.net/browse/JCOMOIDC-203
---
 .../impl/ExplicitKeySignedJWTTrustEngine.java      |  5 +-
 .../oidc/security/impl/JWETokenDecrypter.java      | 23 ++++---
 .../impl/ExplicitKeySignedJWTTrustEngineTest.java  | 79 ++++++++++++++++------
 .../oidc/security/impl/JWETokenDecrypterTest.java  | 53 +++++++++++++++
 4 files changed, 128 insertions(+), 32 deletions(-)

diff --git a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngine.java b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngine.java
index daff336c..5e65bdd9 100644
--- a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngine.java
+++ b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngine.java
@@ -105,9 +105,10 @@ public class ExplicitKeySignedJWTTrustEngine extends BaseSignedJWTTrustEngine<It
             criteriaSet.add(new KeyAlgorithmCriterion(jcaAlgorithm), true);
         }
         
-        // Add the kid from the JOSE header if available
+        // Add the kid from the JOSE header if available, but not for symmetric algorithms, as that is likely
+        // the client secret and there is no standardised identifier for a client secret.
         final String kid = signedJWT.getHeader().getKeyID();
-        if (!Strings.isNullOrEmpty(kid)) {
+        if (!Strings.isNullOrEmpty(kid) && !JWSAlgorithm.Family.HMAC_SHA.contains(sigAlg)) {
             assert kid != null;
             criteriaSet.add(new EvaluableKeyIDCredentialCriterion(new KeyIdCriterion(kid)));
         }
diff --git a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java
index ec96b08d..805c0de5 100644
--- a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java
+++ b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/JWETokenDecrypter.java
@@ -159,32 +159,33 @@ public class JWETokenDecrypter {
             params.getAdditionalCriteria().forEach(newCriteriaSet::add);
         }
         if (criteria != null) {
-            criteria.forEach(newCriteriaSet::add);          
-        }
-        
-        // Specifically add a keyId criterion if available in the header
-        if (encryptedObject.getHeader().getKeyID() != null) {
-            final String keyId = encryptedObject.getHeader().getKeyID();
-            log.debug("Added keyID criteria: '{}'", keyId);
-            newCriteriaSet.add(new EvaluableKeyIDCredentialCriterion(
-                    new KeyIdCriterion(keyId)));
+            criteria.forEach(newCriteriaSet::add);
         }
         
         // Add algorithm if present(should be)
-        final JWEAlgorithm jweAlg = encryptedObject.getHeader().getAlgorithm();       
+        final JWEAlgorithm jweAlg = encryptedObject.getHeader().getAlgorithm();
         if (jweAlg != null) {
             final String algName = jweAlg.getName();
             assert algName != null;
             newCriteriaSet.add(new KeyManagmentAlgorithmCriterion(algName));
         }
         // Add encryption method if present(should be)
-        final EncryptionMethod  encMethod = encryptedObject.getHeader().getEncryptionMethod();        
+        final EncryptionMethod  encMethod = encryptedObject.getHeader().getEncryptionMethod();
         if (encMethod != null) {
             final String encMethodAlgName = encMethod.getName();
             assert encMethodAlgName != null;
             newCriteriaSet.add(new DataEncryptionAlgorithmCriterion(encMethodAlgName));
         }
         
+        // Specifically add a keyId criterion if available in the header and not using direct encryption. Direct
+        // encryption uses a symmetric key that has no standardise identifier
+        if (encryptedObject.getHeader().getKeyID() != null && !JWEAlgorithm.DIR.equals(jweAlg)) {
+            final String keyId = encryptedObject.getHeader().getKeyID();
+            log.debug("Added keyID criteria: '{}'", keyId);
+            newCriteriaSet.add(new EvaluableKeyIDCredentialCriterion(
+                    new KeyIdCriterion(keyId)));
+        }
+        
         // Add the entire object so the resolver can access it
         newCriteriaSet.add(new JOSEObjectCriterion(encryptedObject));
 
diff --git a/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngineTest.java b/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngineTest.java
index fbb476d4..f6716b2b 100644
--- a/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngineTest.java
+++ b/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/ExplicitKeySignedJWTTrustEngineTest.java
@@ -41,7 +41,6 @@ import com.nimbusds.jose.JWSAlgorithm;
 import com.nimbusds.jose.JWSHeader;
 import com.nimbusds.jose.crypto.ECDSASigner;
 import com.nimbusds.jose.crypto.MACSigner;
-import com.nimbusds.jose.jwk.AsymmetricJWK;
 import com.nimbusds.jose.jwk.Curve;
 import com.nimbusds.jose.jwk.ECKey;
 import com.nimbusds.jose.jwk.gen.ECKeyGenerator;
@@ -81,25 +80,27 @@ public class ExplicitKeySignedJWTTrustEngineTest {
     private JOSEObjectCredentialResolver joseObjectCredResolver;
     
     @Nonnull private final String CVE_2016_10555_SIGNING_CERT_PUBLIC_KEY = 
-            "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtJSHqzkdHPY62Mvn80Wc\n"
-            + "vriYxHhh6N/x6mK0hd+J/awNqZm8se6LG0Pv35Xx1aftefLGnlgPho49Jf82NMT/\n"
-            + "MczlsHQesAFwotPr1rbqyvmNrbQTqxrAzoN2b5Cpu9ZPcFznOdtUWv+g+M/Xoqdp\n"
-            + "v8ZPXn1SMgfZJiGw+Mhdxyfv6TEAM8TUeqfYzVpuTmg/ns08ZsHmjxJIDlMrOt8o\n"
-            + "7cKDUK/kt0bfDDYZf5kjdFFF6qzZg0uo30L0qxLpJDr/OpLi904MP4H94rnWPXKE\n"
-            + "Ku8Yx+aYhYITnq5yyPiJpyHfgDj6MVlA1vUWqB9MwlvKOywLNCFfDZj6+TCjzCJF\n"
-            + "XQIDAQAB";
+            """
+        MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtJSHqzkdHPY62Mvn80Wc
+        vriYxHhh6N/x6mK0hd+J/awNqZm8se6LG0Pv35Xx1aftefLGnlgPho49Jf82NMT/
+        MczlsHQesAFwotPr1rbqyvmNrbQTqxrAzoN2b5Cpu9ZPcFznOdtUWv+g+M/Xoqdp
+        v8ZPXn1SMgfZJiGw+Mhdxyfv6TEAM8TUeqfYzVpuTmg/ns08ZsHmjxJIDlMrOt8o
+        7cKDUK/kt0bfDDYZf5kjdFFF6qzZg0uo30L0qxLpJDr/OpLi904MP4H94rnWPXKE
+        Ku8Yx+aYhYITnq5yyPiJpyHfgDj6MVlA1vUWqB9MwlvKOywLNCFfDZj6+TCjzCJF
+        XQIDAQAB""";
     
     /** 
      * This is a forged JWT that contains a 'secret' inside the JWK header. This should
      * never happen, but we want to test that we can not create a SignedJWT from it.
      */
     @Nonnull private final String JWT_WITH_INLINE_SHARED_SECRET_JWK = 
-            "eyJraWQiOiIxMjMiLCJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp3ayI6eyJrdHkiO"
-            + "iJvY3QiLCJraWQiOiIxMjMiLCJrIjoiV0hBeWN6VjJPSGt2UWo5RktFZ3JUV0pSWlZSb"
-            + "1YyMVpjVE4wTm5jNWVpUSIsImFsZyI6IkhTMjU2In19.eyJpc3MiOiJodHRwczpcL1wv"
-            + "b3AuZXhhbXBsZS5jb21cLyIsIm5hbWUiOiJKIERvZSIsImF1ZCI6Imh0dHBzOlwvXC9y"
-            + "cC5leGFtcGxlLmNvbSIsInN1YiI6Impkb2UiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJq"
-            + "ZG9lIn0.q0XGQTDjL2RPVY1DUswmBh7Q8D-vkJw0KruoUJbSU9c";
+            """
+        eyJraWQiOiIxMjMiLCJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp3ayI6eyJrdHkiO\
+        iJvY3QiLCJraWQiOiIxMjMiLCJrIjoiV0hBeWN6VjJPSGt2UWo5RktFZ3JUV0pSWlZSb\
+        1YyMVpjVE4wTm5jNWVpUSIsImFsZyI6IkhTMjU2In19.eyJpc3MiOiJodHRwczpcL1wv\
+        b3AuZXhhbXBsZS5jb21cLyIsIm5hbWUiOiJKIERvZSIsImF1ZCI6Imh0dHBzOlwvXC9y\
+        cC5leGFtcGxlLmNvbSIsInN1YiI6Impkb2UiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJq\
+        ZG9lIn0.q0XGQTDjL2RPVY1DUswmBh7Q8D-vkJw0KruoUJbSU9c""";
     
     /** The client_secret. 256 bit*/
     private static final String CLIENT_SECRET = "Xp2s5v8y/B?E(H+MbQeThWmYq3t6w9z$";
@@ -133,7 +134,7 @@ public class ExplicitKeySignedJWTTrustEngineTest {
             jwkCredential.setAlgorithm(key.getAlgorithm());
             jwkCredential.setKid(key.getKeyID());
             try {
-                jwkCredential.setPublicKey(((AsymmetricJWK) key).toPublicKey());
+                jwkCredential.setPublicKey(key.toPublicKey());
             } catch (final JOSEException e) {                    
                 fail();
             }
@@ -329,10 +330,11 @@ public class ExplicitKeySignedJWTTrustEngineTest {
         // The server *might* if vulnerable valid it it using the RSA public
         // key it has using the a MAC validator.
         final SignedJWT jws = 
-                SignedJWT.parse("eyJraWQiOiJtb2NrLWtleSIsInR5cCI6IkpXVCIsImFsZyI6IkhTMjU2In0."
-                        + "eyJpc3MiOiJodHRwczovL29wLmV4YW1wbGUuY29tLyIsIm5hbWUiOiJKIERvZSIsIm"
-                        + "F1ZCI6Imh0dHBzOi8vcnAuZXhhbXBsZS5jb20iLCJzdWIiOiJqZG9lIiwicHJlZmVy"
-                        + "cmVkX3VzZXJuYW1lIjoiamRvZSJ9._7dbXz7UPiY0Hrfz7SffjjKp849-s696mAvlT-ihWB4");
+                SignedJWT.parse("""
+                    eyJraWQiOiJtb2NrLWtleSIsInR5cCI6IkpXVCIsImFsZyI6IkhTMjU2In0.\
+                    eyJpc3MiOiJodHRwczovL29wLmV4YW1wbGUuY29tLyIsIm5hbWUiOiJKIERvZSIsIm\
+                    F1ZCI6Imh0dHBzOi8vcnAuZXhhbXBsZS5jb20iLCJzdWIiOiJqZG9lIiwicHJlZmVy\
+                    cmVkX3VzZXJuYW1lIjoiamRvZSJ9._7dbXz7UPiY0Hrfz7SffjjKp849-s696mAvlT-ihWB4""");
         
         final var valid = engine.validate(jws,criteria);
         assertFalse(valid);
@@ -415,6 +417,45 @@ public class ExplicitKeySignedJWTTrustEngineTest {
         assertFalse(valid);
     }
     
+    @Test
+    public void testValid_WithSymmetricKeyCredential_Filtered_ArbitraryKid() throws SecurityException, JOSEException {
+        credResolver = new MockAbstractFunctionalCredentialResolver() {
+
+            @Override
+            @Nullable public Credential resolveSingle(
+                    @Nullable final CriteriaSet criteriaSet) throws ResolverException {
+                try {
+                    return TestCredentialHelper.createClientSecretCredential(CLIENT_SECRET).toSigningCredential();
+                } catch (final KeyException e) {
+                    fail();
+                    return null;
+                }
+            }
+
+            @Override
+            @Nonnull protected Iterable<Credential> resolveFromSource(
+                    @Nullable final CriteriaSet criteriaSet)
+                    throws ResolverException {
+
+                final Credential cred = resolveSingle(criteriaSet);
+                return cred != null
+                        ? CollectionSupport.singletonList(cred)
+                        : CollectionSupport.emptyList();
+            }
+        };
+
+        engine = new ExplicitKeySignedJWTTrustEngine(
+                credResolver, joseObjectCredResolver);
+
+        final var valid = engine.validate(createMACSignedJWT(CLIENT_SECRET,"external-kid-value",
+                        JWSAlgorithm.HS256,
+                        "https://op.example.com/",
+                        "https://rp.example.com"),
+                criteria);
+
+        assertTrue(valid);
+    }
+    
     /**
      * Build a basic claims set using the audience and issuer provided.
      * 
diff --git a/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/JWETokenDecrypterTest.java b/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/JWETokenDecrypterTest.java
index d8ec9482..add22c2d 100644
--- a/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/JWETokenDecrypterTest.java
+++ b/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/impl/JWETokenDecrypterTest.java
@@ -144,6 +144,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setKEKCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 try {
                     return TestCredentialHelper.createClientSecretCredential(CLIENT_SECRET)
@@ -154,6 +155,7 @@ public class JWETokenDecrypterTest {
                 }
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -206,6 +208,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setKEKCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 try {
                     final KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
@@ -218,6 +221,7 @@ public class JWETokenDecrypterTest {
                 }
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -248,6 +252,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setContentEncryptionKeyCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 try {
                     return TestCredentialHelper.createClientSecretCredential(CLIENT_SECRET)
@@ -258,6 +263,7 @@ public class JWETokenDecrypterTest {
                 }
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -290,6 +296,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setContentEncryptionKeyCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {                
                 final BasicExpiringJWKCredential jwkCredential = new BasicExpiringJWKCredential(); 
                 jwkCredential.getKeyNames().add("mock-key"); 
@@ -298,6 +305,7 @@ public class JWETokenDecrypterTest {
                 return  jwkCredential;                
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -333,6 +341,41 @@ public class JWETokenDecrypterTest {
         assertEquals(decryptedJWE.getJWTClaimsSet().getSubject(), "jdoe");
     }
     
+    @Test
+    void testDecryptionByDirectEncryption_Using_EvaluableCriteriaFiltering_NonMatchingKid()
+            throws Exception {
+
+        final JWEObject jweObject =
+            new JWEObject(
+                new JWEHeader.Builder(JWEAlgorithm.DIR, EncryptionMethod.A256GCM)
+                    .contentType("JWT")
+                    .keyID("external-kid")
+                    .build(),
+                new Payload(createdSignedJWT()));
+
+        final JWKCredential cred =
+            TestCredentialHelper.createClientSecretCredential(CLIENT_SECRET)
+                .toEncryptionCredential(JWEAlgorithm.DIR, EncryptionMethod.A256GCM);
+
+        jweObject.encrypt(new DirectEncrypter(cred.getSecretKey()));
+
+        final EncryptedJWT jwe = EncryptedJWT.parse(jweObject.serialize());
+
+        final var params = new DecryptionParameters();
+        params.setContentEncryptionKeyCredentialResolver(
+            new MockKeyWrapCriteriaFilteringCredentialResolver(
+                JWEAlgorithm.DIR,
+                EncryptionMethod.A256GCM));
+
+        decrypter = new JWETokenDecrypter(params);
+
+        final JWT decryptedJWE = decrypter.decrypt(jwe);
+
+        assertTrue(jwe.getState() == State.DECRYPTED);
+        assertTrue(decryptedJWE instanceof SignedJWT);
+        assertEquals(decryptedJWE.getJWTClaimsSet().getSubject(), "jdoe");
+    }
+    
     @Test
     void testDecryptionByDirectEncryption_AlgorithmExcluded() throws Exception {       
         
@@ -348,6 +391,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setContentEncryptionKeyCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final BasicJWKCredential jwkCredential = new BasicJWKCredential();
                 jwkCredential.setAlgorithm(JWEAlgorithm.DIR);
@@ -362,6 +406,7 @@ public class JWETokenDecrypterTest {
                 return jwkCredential;
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -395,6 +440,7 @@ public class JWETokenDecrypterTest {
         // Wrong credential type used here
         params.setContentEncryptionKeyCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final BasicJWKCredential jwkCredential = new BasicJWKCredential();
                 jwkCredential.setAlgorithm(JWEAlgorithm.A128KW);
@@ -409,6 +455,7 @@ public class JWETokenDecrypterTest {
                 return jwkCredential;
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -438,6 +485,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setKEKCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final BasicJWKCredential jwkCredential = new BasicJWKCredential();
                 jwkCredential.setAlgorithm(JWEAlgorithm.A128KW);
@@ -452,6 +500,7 @@ public class JWETokenDecrypterTest {
                 return jwkCredential;
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -485,6 +534,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setKEKCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final BasicJWKCredential jwkCredential = new BasicJWKCredential();
                 jwkCredential.setAlgorithm(JWEAlgorithm.RSA_OAEP_256);
@@ -500,6 +550,7 @@ public class JWETokenDecrypterTest {
                 return jwkCredential;
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();
@@ -628,6 +679,7 @@ public class JWETokenDecrypterTest {
         final var params = new DecryptionParameters();
         params.setKEKCredentialResolver(new JOSEObjectCredentialResolver() {
             
+            @Override
             @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final BasicJWKCredential jwkCredential = new BasicJWKCredential();
                 jwkCredential.setAlgorithm(JWEAlgorithm.ECDH_ES_A256KW);
@@ -643,6 +695,7 @@ public class JWETokenDecrypterTest {
                 return jwkCredential;
             }
             
+            @Override
             @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
                 final Credential cred = resolveSingle(criteria);
                 return cred != null ? CollectionSupport.singletonList(cred) : CollectionSupport.emptyList();

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


More information about the commits mailing list