Class DelegatingOAuth2TokenValidator<T extends OAuth2Token>

java.lang.Object
org.springframework.security.oauth2.core.DelegatingOAuth2TokenValidator<T>
Type Parameters:
T - the type of OAuth2Token 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 Details

  • Method Details

    • validate

      public OAuth2TokenValidatorResult validate(T token)
      Description copied from interface: OAuth2TokenValidator
      Verify the validity and/or constraints of the provided OAuth 2.0 Token.
      Specified by:
      validate in interface OAuth2TokenValidator<T extends OAuth2Token>
      Parameters:
      token - an OAuth 2.0 token
      Returns:
      OAuth2TokenValidationResult the success or failure detail of the validation
    • setFailOnError

      public void setFailOnError(boolean failOnError)
      Fail-fast when a delegate errors, defaults to false.
      Parameters:
      failOnError - fail-fast when a delegate errors
      Since:
      6.5.12