Class AuthenticationServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
-
- org.silverpeas.core.web.authentication.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
SilverpeasHttpServlet.HttpError, SilverpeasHttpServlet.UserSessionStatus
-
-
Constructor Summary
Constructors Constructor Description AuthenticationServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 response)
Ask for an authentication for the user behind the incoming HTTP request from a form.-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
existOpenedUserSession, forbidden, notFound, preconditionFailed, redirectOrForwardService, sendError, sendError, service, throwHttpForbiddenError, throwHttpForbiddenError, throwHttpNotFoundError, throwHttpNotFoundError, throwHttpPreconditionFailedError, throwHttpPreconditionFailedError
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
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 classjavax.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 classjavax.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.
-
-