public class NimbusJwtDecoderJwkSupport extends java.lang.Object implements JwtDecoder
JwtDecoder that "decodes" a
JSON Web Token (JWT) and additionally verifies it's digital signature if the JWT is a
JSON Web Signature (JWS). The public key used for verification is obtained from the
JSON Web Key (JWK) Set URL which is supplied via the constructor.
NOTE: This implementation uses the Nimbus JOSE + JWT SDK internally.
JwtDecoder,
JSON Web Token (JWT),
JSON Web Signature (JWS),
JSON Web Key (JWK),
Nimbus JOSE + JWT SDK| Constructor and Description |
|---|
NimbusJwtDecoderJwkSupport(java.lang.String jwkSetUrl) |
NimbusJwtDecoderJwkSupport(java.lang.String jwkSetUrl,
java.lang.String jwsAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
Jwt |
decode(java.lang.String token) |
public NimbusJwtDecoderJwkSupport(java.lang.String jwkSetUrl)
public NimbusJwtDecoderJwkSupport(java.lang.String jwkSetUrl,
java.lang.String jwsAlgorithm)
public Jwt decode(java.lang.String token) throws JwtException
decode in interface JwtDecoderJwtException