Class AuthenticationServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class AuthenticationServlet
    extends SilverpeasHttpServlet
    This servlet listens for incoming authentication requests for Silverpeas.

    This servlet delegates the authentication process and the HTTP session opening in Silverpeas to the corresponding services. If the authentication and the session opening succeed, the user behind the authentication ask is redirected to its user home page. Otherwise, he's redirected to an authentication failure page (that can the login page enriched with an error message).

    See Also:
    Serialized Form
    • Constructor Detail

      • AuthenticationServlet

        public AuthenticationServlet()
    • Method Detail

      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest servletRequest,
                           javax.servlet.http.HttpServletResponse response)
        Ask for an authentication for the user behind the incoming HTTP request from a form.
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Parameters:
        servletRequest - the HTTP request.
        response - the HTTP response.
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          IOException
        Ask for an authentication for the user behind the incoming HTTP request.
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Parameters:
        request - the HTTP request.
        response - the HTTP response.
        Throws:
        javax.servlet.ServletException - if the servlet fails to answer the request.
        IOException - if an IO error occurs with the client.