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:
java.io.Serializable
public class IncorrectClaimException extends InvalidClaimException
This exception is thrown when the expected value is not found while verifying the Claims.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncorrectClaimException(java.lang.String message, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClaimName()
This method can be used to fetch the name for which the Claim verification failed.Claim
getClaimValue()
This method can be used to fetch the value for which the Claim verification failed.
-
-
-
Constructor Detail
-
IncorrectClaimException
public IncorrectClaimException(java.lang.String message, java.lang.String claimName, Claim claim)
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 Detail
-
getClaimName
public java.lang.String 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
public Claim getClaimValue()
This method can be used to fetch the value for which the Claim verification failed.- Returns:
- The value for which the verification failed
-
-