Class JwtClaimValidator<T>
java.lang.Object
org.springframework.security.oauth2.jwt.JwtClaimValidator<T>
- All Implemented Interfaces:
org.springframework.security.oauth2.core.OAuth2TokenValidator<Jwt>
public final class JwtClaimValidator<T>
extends Object
implements org.springframework.security.oauth2.core.OAuth2TokenValidator<Jwt>
- Since:
- 5.3
-
Constructor Summary
ConstructorDescriptionJwtClaimValidator
(String claim, Predicate<T> test) Constructs aJwtClaimValidator
using the provided parameters -
Method Summary
-
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
- Specified by:
validate
in interfaceorg.springframework.security.oauth2.core.OAuth2TokenValidator<T>
-