Interface Authenticator

All Known Implementing Classes:
AuthenticatorBase, BasicAuthenticator, DigestAuthenticator, FormAuthenticator, NonLoginAuthenticator, SpnegoAuthenticator, SSLAuthenticator

public interface Authenticator
An Authenticator is a component (usually a Valve or Container) that provides some sort of authentication service.
Craig R. McClanahan
  • Method Details

    • authenticate

      boolean authenticate(Request request, HttpServletResponse response) throws IOException
      Authenticate the user making this request, based on the login configuration of the Context with which this Authenticator is associated.
      request - Request we are processing
      response - Response we are populating
      true if any specified constraints have been satisfied, or false if one more constraints were not satisfied (in which case an authentication challenge will have been written to the response).
      IOException - if an input/output error occurs
    • login

      void login(String userName, String password, Request request) throws ServletException
    • logout

      void logout(Request request)