public final class JWTVerifier
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JWTVerifier.BaseVerification
The Verification class holds the Claims required by a JWT to be valid.
|
| Modifier and Type | Method and Description |
|---|---|
DecodedJWT |
verify(java.lang.String token)
Perform the verification against the given Token, using any previous configured options.
|
public DecodedJWT verify(java.lang.String token) throws JWTVerificationException
token - to verify.AlgorithmMismatchException - if the algorithm stated in the token's header it's not equal to the one defined in the JWTVerifier.SignatureVerificationException - if the signature is invalid.TokenExpiredException - if the token has expired.InvalidClaimException - if a claim contained a different value than the expected one.JWTVerificationException