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