public abstract class ClaimJwtException extends JwtException
JwtException
that is thrown after a validation of an JWT claim failed.Modifier and Type | Field and Description |
---|---|
static String |
INCORRECT_EXPECTED_CLAIM_MESSAGE_TEMPLATE
Deprecated.
will be removed in a future release.
|
static String |
MISSING_EXPECTED_CLAIM_MESSAGE_TEMPLATE
Deprecated.
will be removed in a future release.
|
Modifier | Constructor and Description |
---|---|
protected |
ClaimJwtException(Header header,
Claims claims,
String message)
Creates a new instance with the specified header, claims and exception message.
|
protected |
ClaimJwtException(Header header,
Claims claims,
String message,
Throwable cause)
Creates a new instance with the specified header, claims and exception message as a result of encountering
the specified
cause . |
Modifier and Type | Method and Description |
---|---|
Claims |
getClaims()
Returns the
Claims that failed validation. |
Header |
getHeader()
Returns the header associated with the
claims that failed validation. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated public static final String INCORRECT_EXPECTED_CLAIM_MESSAGE_TEMPLATE
@Deprecated public static final String MISSING_EXPECTED_CLAIM_MESSAGE_TEMPLATE
protected ClaimJwtException(Header header, Claims claims, String message)
header
- the header inspectedclaims
- the claims obtainedmessage
- the exception messageprotected ClaimJwtException(Header header, Claims claims, String message, Throwable cause)
cause
.header
- the header inspectedclaims
- the claims obtainedmessage
- the exception messagecause
- the exception that caused this ClaimJwtException to be thrown.Copyright © 2014–2025 jsonwebtoken.io. All rights reserved.