change the OctetSequenceKey constructor in SymmetricCacheService

pull/628/merge
Kristina Sahlmann 2014-07-02 13:12:04 +02:00 committed by Justin Richer
parent 306c8cff17
commit 7bf8e2ad08
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public class SymmetricCacheService {
String id = "SYMMETRIC-KEY";
JWK jwk = new OctetSequenceKey(Base64URL.encode(key), KeyUse.SIGNATURE, null, new Algorithm(id), null, null, null, null);
JWK jwk = new OctetSequenceKey(Base64URL.encode(key), KeyUse.SIGNATURE, null, null, id, null, null, null);
Map<String, JWK> keys = ImmutableMap.of(id, jwk);
JwtSigningAndValidationService service = new DefaultJwtSigningAndValidationService(keys);