public class MissingClaimException extends InvalidClaimException
INCORRECT_EXPECTED_CLAIM_MESSAGE_TEMPLATE, MISSING_EXPECTED_CLAIM_MESSAGE_TEMPLATE| Constructor and Description |
|---|
MissingClaimException(Header header,
Claims claims,
String claimName,
Object claimValue,
String message)
Creates a new instance with the specified explanation message.
|
MissingClaimException(Header header,
Claims claims,
String claimName,
Object claimValue,
String message,
Throwable cause)
Deprecated.
since 0.12.0 since it is not used in JJWT's codebase
|
getClaimName, getClaimValuegetClaims, getHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MissingClaimException(Header header, Claims claims, String claimName, Object claimValue, String message)
header - the header associated with the claims that did not contain the required claimclaims - the claims that did not contain the required claimclaimName - the name of the claim that could not be validatedclaimValue - the value of the claim that could not be validatedmessage - the message explaining why the exception is thrown.@Deprecated public MissingClaimException(Header header, Claims claims, String claimName, Object claimValue, String message, Throwable cause)
header - the header associated with the claims that did not contain the required claimclaims - the claims that did not contain the required claimclaimName - the name of the claim that could not be validatedclaimValue - the value of the claim that could not be validatedmessage - the message explaining why the exception is thrown.cause - the underlying cause that resulted in this exception being thrown.Copyright © 2014–2025 jsonwebtoken.io. All rights reserved.