Skip to content

Commit 7bf8e2a

Browse files
Kristina Sahlmannjricher
authored andcommitted
change the OctetSequenceKey constructor in SymmetricCacheService
1 parent 306c8cf commit 7bf8e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/SymmetricCacheService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public JwtSigningAndValidationService load(String key) throws Exception {
9999

100100
String id = "SYMMETRIC-KEY";
101101

102-
JWK jwk = new OctetSequenceKey(Base64URL.encode(key), KeyUse.SIGNATURE, null, new Algorithm(id), null, null, null, null);
102+
JWK jwk = new OctetSequenceKey(Base64URL.encode(key), KeyUse.SIGNATURE, null, null, id, null, null, null);
103103
Map<String, JWK> keys = ImmutableMap.of(id, jwk);
104104
JwtSigningAndValidationService service = new DefaultJwtSigningAndValidationService(keys);
105105

0 commit comments

Comments
 (0)