Interface OAuth2TokenValidator<T extends AbstractOAuth2Token>

  • All Known Implementing Classes:
    DelegatingOAuth2TokenValidator
    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 AbstractOAuth2Token>
    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 Detail

      • 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