@FunctionalInterface
public interface JwtDecoder
Jwt
.
JWTs may be represented using the JWS Compact Serialization format for a JSON Web Signature (JWS) structure or JWE Compact Serialization format for a JSON Web Encryption (JWE) structure. Therefore, implementors are responsible for verifying a JWS and/or decrypting a JWE.
Jwt
,
JSON Web Token
(JWT),
JSON Web Signature
(JWS),
JSON Web Encryption
(JWE),
JWS
Compact Serialization,
JWE
Compact SerializationModifier and Type | Method and Description |
---|---|
Jwt |
decode(java.lang.String token)
Decodes the JWT from it's compact claims representation format and returns a
Jwt . |
Jwt decode(java.lang.String token) throws JwtException
Jwt
.token
- the JWT valueJwt
JwtException
- if an error occurs while attempting to decode the JWT