101 String
id =
"SYMMETRIC-KEY";
103 JWK jwk =
new OctetSequenceKey(Base64URL.encode(key), KeyUse.SIGNATURE, null, null, id, null, null, null, null);
104 Map<String, JWK> keys = ImmutableMap.of(
id, jwk);
105 JWTSigningAndValidationService service =
new DefaultJWTSigningAndValidationService(keys);
109 }
catch (NoSuchAlgorithmException | InvalidKeySpecException e) {
110 logger.error(
"Couldn't create symmetric validator for client", e);
113 throw new IllegalArgumentException(
"Couldn't create symmetric validator for client");
static final Logger logger
Definition: SymmetricKeyJWTValidatorCacheService.java:53