Class CookieWriterServlet

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

    public class CookieWriterServlet
    extends jakarta.servlet.http.HttpServlet
    The Writer Service is used by the identity provider. After successful authentication, the common domain cookie is appended with the query parameter _saml_idp=entity-ID-of-identity-provider. This parameter is used to redirect the principal to the Writer Service URL defined for the identity provider. The URL is configured as the value for the Writer Service URL attribute when an authentication domain is created. Use the format http://common-domain-host:port/deployment-uri/saml2writer where common-domain-host:port refers to the machine on which the Common Domain Services are installed and deployment-uri tells the web container where to look for information specific to the application (such as classes or JARs). The default URI is amcommon.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handles the HTTP GET request.
      void doPost​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handles the HTTP POST request.
      byte[] generateSuccinctID​(String providerURL, boolean bIsSAML2)  
      void init​(jakarta.servlet.ServletConfig config)
      Gets handle to debug.
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • CookieWriterServlet

        public CookieWriterServlet()
    • Method Detail

      • init

        public void init​(jakarta.servlet.ServletConfig config)
                  throws jakarta.servlet.ServletException
        Gets handle to debug.
        Specified by:
        init in interface jakarta.servlet.Servlet
        Overrides:
        init in class jakarta.servlet.GenericServlet
        Parameters:
        config - the ServletConfig object that contains configutation information for this servlet.
        Throws:
        jakarta.servlet.ServletException - if an exception occurs that interrupts the servlet's normal operation.
      • doGet

        public void doGet​(jakarta.servlet.http.HttpServletRequest request,
                          jakarta.servlet.http.HttpServletResponse response)
                   throws jakarta.servlet.ServletException,
                          IOException
        Handles the HTTP GET request.
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - an HttpServletRequest object that contains the request the client has made of the servlet.
        response - an HttpServletResponse 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
      • doPost

        public void doPost​(jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response)
                    throws jakarta.servlet.ServletException,
                           IOException
        Handles the HTTP POST request.
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - an HttpServletRequest object that contains the request the client has made of the servlet.
        response - an HttpServletResponse 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
      • generateSuccinctID

        public byte[] generateSuccinctID​(String providerURL,
                                         boolean bIsSAML2)