Class JwtClaimValidator<T>
java.lang.Object
org.springframework.security.oauth2.jwt.JwtClaimValidator<T>
- All Implemented Interfaces:
 OAuth2TokenValidator<Jwt>
- Since:
 - 5.3
 
- 
Constructor Summary
ConstructorsConstructorDescriptionJwtClaimValidator(String claim, Predicate<T> test) Constructs aJwtClaimValidatorusing the provided parameters - 
Method Summary
Modifier and TypeMethodDescriptionVerify the validity and/or constraints of the provided OAuth 2.0 Token. 
- 
Constructor Details
- 
JwtClaimValidator
Constructs aJwtClaimValidatorusing the provided parameters- Parameters:
 claim- - is the name of the claim inJwtto validate.test- - is the predicate function for the claim to test against.
 
 - 
 - 
Method Details
- 
validate
Description copied from interface:OAuth2TokenValidatorVerify the validity and/or constraints of the provided OAuth 2.0 Token.- Specified by:
 validatein interfaceOAuth2TokenValidator<T>- Parameters:
 token- an OAuth 2.0 token- Returns:
 - OAuth2TokenValidationResult the success or failure detail of the validation
 
 
 -