Package org.jose4j.jwt.consumer
Class JtiValidator
java.lang.Object
org.jose4j.jwt.consumer.JtiValidator
- All Implemented Interfaces:
ErrorCodeValidator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jose4j.jwt.consumer.ErrorCodeValidator
ErrorCodeValidator.Error -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate(JwtContext jwtContext) Validate some aspect of the JWT.
-
Constructor Details
-
JtiValidator
public JtiValidator(boolean requireJti)
-
-
Method Details
-
validate
Description copied from interface:ErrorCodeValidatorValidate some aspect of the JWT.
Implementations should use negative values for error codes so as to avoid potential collisions with error code values used by this library, which are defined in
ErrorCodes.- Specified by:
validatein interfaceErrorCodeValidator- Parameters:
jwtContext- the JWT context- Returns:
- a Error object with a stable error code and description of the problem or null, if valid
- Throws:
MalformedClaimException- if a malformed claim is encountered
-