- All Known Implementing Classes:
AudienceValidator
,ExpirationValidator
,FieldValidator
,IssueTimeValidator
,MaxTokenAgeValidator
,NotBeforeValidator
,UserPrincipalValidator
public interface ClaimValidator
JWT claim validator.
-
Method Summary
Modifier and TypeMethodDescriptionclaims()
Handled JWT claims.jwtScope()
Scope of the JWT claims.void
validate
(Jwt jwt, Errors.Collector collector, List<ClaimValidator> validators) Validate JWT against this class's configuration.
-
Method Details
-
jwtScope
JwtScope jwtScope()Scope of the JWT claims.- Returns:
- JWT claim scope
-
claims
Handled JWT claims.- Returns:
- claims
-
validate
Validate JWT against this class's configuration.- Parameters:
jwt
- jwt to validatecollector
- collector of error messages to add problems to. UseErrors.Collector.fatal(Object, String)
to mark the validation as a failurevalidators
- immutable list of all currently processed claim validators
-