public class IncorrectClaimException extends InvalidClaimException
INCORRECT_EXPECTED_CLAIM_MESSAGE_TEMPLATE, MISSING_EXPECTED_CLAIM_MESSAGE_TEMPLATE
Constructor and Description |
---|
IncorrectClaimException(Header header,
Claims claims,
String claimName,
Object claimValue,
String message)
Creates a new instance with the specified header, claims and explanation message.
|
IncorrectClaimException(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.
|
getClaimName, getClaimValue
getClaims, getHeader
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IncorrectClaimException(Header header, Claims claims, String claimName, Object claimValue, String message)
header
- the header inspectedclaims
- the claims with the incorrect claim valueclaimName
- the name of the claim that could not be validatedclaimValue
- the value of the claim that could not be validatedmessage
- the exception messagepublic IncorrectClaimException(Header header, Claims claims, String claimName, Object claimValue, String message, Throwable cause)
header
- the header inspectedclaims
- the claims with the incorrect claim valueclaimName
- 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.