Package com.auth0.jwt.exceptions
Class IncorrectClaimException
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.IncorrectClaimException
- All Implemented Interfaces:
Serializable
This exception is thrown when the expected value is not found while verifying the Claims.
- See Also:
-
Constructor Summary
ConstructorDescriptionIncorrectClaimException
(String message, String claimName, Claim claim) Used internally to construct the IncorrectClaimException which is thrown when there is verification failure for a Claim that exists. -
Method Summary
Modifier and TypeMethodDescriptionThis method can be used to fetch the name for which the Claim verification failed.This method can be used to fetch the value for which the Claim verification failed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IncorrectClaimException
Used internally to construct the IncorrectClaimException which is thrown when there is verification failure for a Claim that exists.- Parameters:
message
- The error messageclaimName
- The Claim name for which verification failedclaim
- The Claim value for which verification failed
-
-
Method Details
-
getClaimName
This method can be used to fetch the name for which the Claim verification failed.- Returns:
- The claim name for which the verification failed.
-
getClaimValue
This method can be used to fetch the value for which the Claim verification failed.- Returns:
- The value for which the verification failed
-