public final class JwtClaimValidator<T> extends java.lang.Object implements org.springframework.security.oauth2.core.OAuth2TokenValidator<Jwt>
Jwt against a provided Predicate| Constructor and Description |
|---|
JwtClaimValidator(java.lang.String claim,
java.util.function.Predicate<T> test)
Constructs a
JwtClaimValidator using the provided parameters |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.core.OAuth2TokenValidatorResult |
validate(Jwt token) |
public JwtClaimValidator(java.lang.String claim,
java.util.function.Predicate<T> test)
JwtClaimValidator using the provided parametersclaim - - is the name of the claim in Jwt to validate.test - - is the predicate function for the claim to test against.