Class DelegatingOAuth2TokenValidator<T extends AbstractOAuth2Token>
- java.lang.Object
-
- org.springframework.security.oauth2.core.DelegatingOAuth2TokenValidator<T>
-
- Type Parameters:
T- the type ofAbstractOAuth2Tokenthis validator validates
- All Implemented Interfaces:
OAuth2TokenValidator<T>
public final class DelegatingOAuth2TokenValidator<T extends AbstractOAuth2Token> extends java.lang.Object implements OAuth2TokenValidator<T>
A composite validator- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description DelegatingOAuth2TokenValidator(java.util.Collection<OAuth2TokenValidator<T>> tokenValidators)Constructs aDelegatingOAuth2TokenValidatorusing the provided validators.DelegatingOAuth2TokenValidator(OAuth2TokenValidator<T>... tokenValidators)Constructs aDelegatingOAuth2TokenValidatorusing the provided validators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2TokenValidatorResultvalidate(T token)Verify the validity and/or constraints of the provided OAuth 2.0 Token.
-
-
-
Constructor Detail
-
DelegatingOAuth2TokenValidator
public DelegatingOAuth2TokenValidator(java.util.Collection<OAuth2TokenValidator<T>> tokenValidators)
Constructs aDelegatingOAuth2TokenValidatorusing the provided validators.- Parameters:
tokenValidators- theCollectionofOAuth2TokenValidators to use
-
DelegatingOAuth2TokenValidator
@SafeVarargs public DelegatingOAuth2TokenValidator(OAuth2TokenValidator<T>... tokenValidators)
Constructs aDelegatingOAuth2TokenValidatorusing the provided validators.- Parameters:
tokenValidators- the collection ofOAuth2TokenValidators to use
-
-
Method Detail
-
validate
public OAuth2TokenValidatorResult validate(T token)
Description copied from interface:OAuth2TokenValidatorVerify the validity and/or constraints of the provided OAuth 2.0 Token.- Specified by:
validatein interfaceOAuth2TokenValidator<T extends AbstractOAuth2Token>- Parameters:
token- an OAuth 2.0 token- Returns:
- OAuth2TokenValidationResult the success or failure detail of the validation
-
-