T - the type of AbstractOAuth2Token this validator validatespublic final class DelegatingOAuth2TokenValidator<T extends AbstractOAuth2Token> extends java.lang.Object implements OAuth2TokenValidator<T>
| Constructor and Description |
|---|
DelegatingOAuth2TokenValidator(java.util.Collection<OAuth2TokenValidator<T>> tokenValidators)
Constructs a
DelegatingOAuth2TokenValidator using the provided validators. |
DelegatingOAuth2TokenValidator(OAuth2TokenValidator<T>... tokenValidators)
Constructs a
DelegatingOAuth2TokenValidator using the provided validators. |
| Modifier and Type | Method and Description |
|---|---|
OAuth2TokenValidatorResult |
validate(T token)
Verify the validity and/or constraints of the provided OAuth 2.0 Token.
|
public DelegatingOAuth2TokenValidator(java.util.Collection<OAuth2TokenValidator<T>> tokenValidators)
DelegatingOAuth2TokenValidator using the provided validators.tokenValidators - the Collection of OAuth2TokenValidators to use@SafeVarargs public DelegatingOAuth2TokenValidator(OAuth2TokenValidator<T>... tokenValidators)
DelegatingOAuth2TokenValidator using the provided validators.tokenValidators - the collection of OAuth2TokenValidators to usepublic OAuth2TokenValidatorResult validate(T token)
validate in interface OAuth2TokenValidator<T extends AbstractOAuth2Token>token - an OAuth 2.0 token