Interface TokenAuth

All Known Implementing Classes:
HttpBasicAuth

public interface TokenAuth
An interface for in-bound token authentication.
Author:
liemmn
  • Method Summary

    Modifier and Type
    Method
    Description
    Validate the given token contained in the in-bound headers.
  • Method Details

    • validate

      Validate the given token contained in the in-bound headers.

      If there is no token signature in the given headers for this implementation, this method should return a null. If there is an applicable token signature, but the token validation fails, this method should throw an AuthenticationException.

      Parameters:
      headers - headers containing token to validate
      Returns:
      authenticated context, or null if not applicable
      Throws:
      AuthenticationException - if authentication fails