Class SAMLPOSTProfileServlet

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

    public class SAMLPOSTProfileServlet
    extends jakarta.servlet.http.HttpServlet
    This servlet is used to support SAML 1.x Web Browser/POST Profile.
    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)
      Initiates SAML web browser POST profile.
      void doPost​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      This method processes TARGET and SAMLResponse info from the request, validates the response/assertion(s), then redirects user to the TARGET resource if all are valid.
      • 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, init, log, log
    • Constructor Detail

      • SAMLPOSTProfileServlet

        public SAMLPOSTProfileServlet()
    • Method Detail

      • doGet

        public void doGet​(jakarta.servlet.http.HttpServletRequest request,
                          jakarta.servlet.http.HttpServletResponse response)
                   throws jakarta.servlet.ServletException,
                          IOException
        Initiates SAML web browser POST profile. This method takes in a TARGET in the request, creates a SAMLResponse, then redirects user to the destination site.
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - HttpServletRequest instance
        response - HttpServletResponse instance
        Throws:
        jakarta.servlet.ServletException - if there is an error.
        IOException - if there is an error.
      • doPost

        public void doPost​(jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response)
                    throws jakarta.servlet.ServletException,
                           IOException
        This method processes TARGET and SAMLResponse info from the request, validates the response/assertion(s), then redirects user to the TARGET resource if all are valid.
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - HttpServletRequest instance
        response - HttpServletResponse instance
        Throws:
        jakarta.servlet.ServletException - if there is an error.
        IOException - if there is an error.