Package com.auth0.jwt.exceptions
Class MissingClaimException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.auth0.jwt.exceptions.JWTVerificationException
com.auth0.jwt.exceptions.InvalidClaimException
com.auth0.jwt.exceptions.MissingClaimException
- All Implemented Interfaces:
Serializable
This exception is thrown when the claim to be verified is missing.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method can be used to fetch the name for which the Claim is missing during the verification.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingClaimException
-
-
Method Details
-
getClaimName
This method can be used to fetch the name for which the Claim is missing during the verification.- Returns:
- The name of the Claim that doesn't exist.
-