Interface TokenValidator

All Known Implementing Classes:
JWTSignatureValidator, OAuthIntrospectionValidator

public interface TokenValidator
An interface specifying a TokenValidator contract
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close any allocated resources like background threads
    Return the id of this validator
    Validate the passed access token return it wrapped in TokenInfo with
  • Method Details

    • validate

      TokenInfo validate(String token)
      Validate the passed access token return it wrapped in TokenInfo with
      Parameters:
      token - An access token to validate
      Returns:
      TokenInfo wrapping a valid token
    • getValidatorId

      String getValidatorId()
      Return the id of this validator
      Returns:
      A validator id
    • close

      void close()
      Close any allocated resources like background threads