Interface OAuth2TokenValidator<T extends OAuth2Token>

All Known Implementing Classes:
DelegatingOAuth2TokenValidator, JwtClaimValidator, JwtIssuerValidator, JwtTimestampValidator, OidcIdTokenValidator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OAuth2TokenValidator<T extends OAuth2Token>
Implementations of this interface are responsible for "verifying" the validity and/or constraints of the attributes contained in an OAuth 2.0 Token.
Since:
5.1
  • Method Summary

    Modifier and Type
    Method
    Description
    validate(T token)
    Verify the validity and/or constraints of the provided OAuth 2.0 Token.
  • Method Details

    • validate

      OAuth2TokenValidatorResult validate(T token)
      Verify the validity and/or constraints of the provided OAuth 2.0 Token.
      Parameters:
      token - an OAuth 2.0 token
      Returns:
      OAuth2TokenValidationResult the success or failure detail of the validation