Package com.iplanet.services.cdc
Class CDCServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- com.iplanet.services.cdc.CDCServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class CDCServlet extends jakarta.servlet.http.HttpServletTheCDCServletis the heart of the Cross Domain Single Signon mechanism of OpenAM.The following is the algorithm used by the program.
- If request does not contain SSO related cookie redirect request to the auth service
- if request contains SSO related cookie
- Retrieve the cookie related to SSO namely
iPlanetDirectoryProfrom request. - Create Liberty
AuthnResponsewith the SSO cookie as the Name Identifier. - Send the Response as Form POST to the original request requested using the goto parameter in the query string.
- Retrieve the cookie related to SSO namely
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CDCServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Handles the HTTP GET request.voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Handles the HTTP POST request.voidinit(jakarta.servlet.ServletConfig config)Initiates the servlet.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletExceptionInitiates the servlet.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.GenericServlet- Parameters:
config- Servlet Configuration object that contains configutation information for this servlet.- Throws:
jakarta.servlet.ServletException- if servlet failed to initialize.
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOExceptionHandles the HTTP GET request.- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
request- HTTP Servlet Request object that contains the request the client has made of the servlet.response- an HTTP Servlet Response object that contains the response the servlet sends to the client.- Throws:
jakarta.servlet.ServletException- if an input or output error is detected when the servlet handles the GET requestIOException- if the request for the GET could not be handled.
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOExceptionHandles the HTTP POST request.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
request- HTTP Servlet Request object that contains the request the client has made of the servlet.response- an HTTP Servlet Response object that contains the response the servlet sends to the client.- Throws:
jakarta.servlet.ServletException- if an input or output error is detected when the servlet handles the GET request.IOException- if the request for the GET could not be handled.
-
-