Interface Authenticator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean authenticate​(Request request, HttpServletResponse response)
      Authenticate the user making this request, based on the login configuration of the Context with which this Authenticator is associated.
      void login​(java.lang.String userName, java.lang.String password, Request request)
      Logs in the specified user for the given request.
      void logout​(Request request)
      Logs out the user associated with the given request.
    • Method Detail

      • authenticate

        boolean authenticate​(Request request,
                             HttpServletResponse response)
                      throws java.io.IOException
        Authenticate the user making this request, based on the login configuration of the Context with which this Authenticator is associated.
        Parameters:
        request - Request we are processing
        response - Response we are populating
        Returns:
        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).
        Throws:
        java.io.IOException - if an input/output error occurs
      • login

        void login​(java.lang.String userName,
                   java.lang.String password,
                   Request request)
            throws ServletException
        Logs in the specified user for the given request.
        Parameters:
        userName - the user name
        password - the password
        request - the request being processed
        Throws:
        ServletException - if a login error occurs
      • logout

        void logout​(Request request)
        Logs out the user associated with the given request.
        Parameters:
        request - the request being processed