com.silverpeas.authentication
Class AuthenticationServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.silverpeas.authentication.AuthenticationServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AuthenticationServlet
extends javax.servlet.http.HttpServlet

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 Summary
AuthenticationServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Ask for an authentication for the user behind the incoming HTTP request.
 void doPost(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Ask for an authentication for the user behind the incoming HTTP request from a form.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationServlet

public AuthenticationServlet()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest servletRequest,
                   javax.servlet.http.HttpServletResponse servletResponse)
            throws IOException,
                   javax.servlet.ServletException
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.
servletResponse - the HTTP response.
Throws:
IOException - when an error occurs while processing the request or sending the response.
javax.servlet.ServletException

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.


Copyright © 2016 Silverpeas. All Rights Reserved.