public final class JwtClaimValidator<T> extends java.lang.Object implements 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 |
---|---|
OAuth2TokenValidatorResult |
validate(Jwt token)
Verify the validity and/or constraints of the provided OAuth 2.0 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.public OAuth2TokenValidatorResult validate(Jwt token)
validate
in interface OAuth2TokenValidator<Jwt>
token
- an OAuth 2.0 token