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