Package org.jose4j.jwt.consumer
Class IssValidator
java.lang.Object
org.jose4j.jwt.consumer.IssValidator
- All Implemented Interfaces:
ErrorCodeValidator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jose4j.jwt.consumer.ErrorCodeValidator
ErrorCodeValidator.Error -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionIssValidator(boolean requireIssuer, String... expectedIssuers) IssValidator(String expectedIssuer, boolean requireIssuer) -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringvalidate(JwtContext jwtContext) Validate some aspect of the JWT.
-
Field Details
-
expectedIssuers
-
requireIssuer
private boolean requireIssuer
-
-
Constructor Details
-
IssValidator
-
IssValidator
-
-
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
-
expectedValue
-