Interface HttpAuthenticationContext

All Known Subinterfaces:
HttpAuthenticationFailureContext, HttpAuthenticationSuccessContext

public interface HttpAuthenticationContext
Context class holding all details relevant for authentication processing by HttpAuthenticationHandler modules.
  • Field Details

  • Method Details

    • getFilterChain

      @Nonnull javax.servlet.FilterChain getFilterChain()
      Returns:
      the FilterChain for the authentication request.
    • getRequest

      @Nonnull javax.servlet.http.HttpServletRequest getRequest()
      Returns:
      the HTTP request
    • getResponse

      @Nonnull javax.servlet.http.HttpServletResponse getResponse()
      Returns:
      the HTTP response
    • getUsername

      @Nullable String getUsername()
      Returns:
      the provided username. Can be null if no username was provided. The provided username may be different to the authenticated user's username, for example when using OAuth authentication.
    • getCredentials

      @Nullable Object getCredentials()
      Returns:
      the provided credentials. Can be null if no credentials were provided.
    • getMethod

      @Nonnull String getMethod()
      Returns:
      the requested authentication method. Can be either of METHOD_BASIC, METHOD_FORM or METHOD_TOKEN.