Class DelegatingOAuth2TokenValidator<T extends OAuth2Token>
java.lang.Object
org.springframework.security.oauth2.core.DelegatingOAuth2TokenValidator<T>
- Type Parameters:
T
- the type ofOAuth2Token
this 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
ConstructorDescriptionDelegatingOAuth2TokenValidator
(Collection<OAuth2TokenValidator<T>> tokenValidators) Constructs aDelegatingOAuth2TokenValidator
using the provided validators.DelegatingOAuth2TokenValidator
(OAuth2TokenValidator<T>... tokenValidators) Constructs aDelegatingOAuth2TokenValidator
using the provided validators. -
Method Summary
Modifier and TypeMethodDescriptionVerify the validity and/or constraints of the provided OAuth 2.0 Token.
-
Constructor Details
-
DelegatingOAuth2TokenValidator
Constructs aDelegatingOAuth2TokenValidator
using the provided validators.- Parameters:
tokenValidators
- theCollection
ofOAuth2TokenValidator
s to use
-
DelegatingOAuth2TokenValidator
Constructs aDelegatingOAuth2TokenValidator
using the provided validators.- Parameters:
tokenValidators
- the collection ofOAuth2TokenValidator
s to use
-
-
Method Details
-
validate
Description copied from interface:OAuth2TokenValidator
Verify the validity and/or constraints of the provided OAuth 2.0 Token.- Specified by:
validate
in interfaceOAuth2TokenValidator<T extends OAuth2Token>
- Parameters:
token
- an OAuth 2.0 token- Returns:
- OAuth2TokenValidationResult the success or failure detail of the validation
-