public class InvalidClaimException extends ClaimJwtException
IncorrectClaimException,
MissingClaimException,
Serialized FormINCORRECT_EXPECTED_CLAIM_MESSAGE_TEMPLATE, MISSING_EXPECTED_CLAIM_MESSAGE_TEMPLATE| Modifier | Constructor and Description |
|---|---|
protected |
InvalidClaimException(Header header,
Claims claims,
String claimName,
Object claimValue,
String message)
Creates a new instance with the specified header, claims and explanation message.
|
protected |
InvalidClaimException(Header header,
Claims claims,
String claimName,
Object claimValue,
String message,
Throwable cause)
Creates a new instance with the specified header, claims, explanation message and underlying cause.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClaimName()
Returns the name of the invalid claim.
|
Object |
getClaimValue()
Returns the claim value that could not be validated.
|
getClaims, getHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected InvalidClaimException(Header header, Claims claims, String claimName, Object claimValue, String message)
header - the header inspectedclaims - the claims obtainedclaimName - the name of the claim that could not be validatedclaimValue - the value of the claim that could not be validatedmessage - the exception messageprotected InvalidClaimException(Header header, Claims claims, String claimName, Object claimValue, String message, Throwable cause)
header - the header inspectedclaims - the claims obtainedclaimName - the name of the claim that could not be validatedclaimValue - the value of the claim that could not be validatedmessage - the exception messagecause - the underlying cause that resulted in this exception being thrownCopyright © 2014–2025 jsonwebtoken.io. All rights reserved.