Class IDPArtifactResolution


  • public class IDPArtifactResolution
    extends Object
    This class handles the artifact resolution request from a service provider. It processes the artifact resolution request sent by the service provider and sends a proper SOAPMessage that contains an Assertion.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void doArtifactResolution​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      This method processes the artifact resolution request coming from a service provider.
      static jakarta.xml.soap.SOAPMessage onMessage​(jakarta.xml.soap.SOAPMessage message, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String realm, String idpEntityID)
      This method generates a SOAPMessage containing the ArtifactResponse that is corresponding to the ArtifactResolve contained in the SOAPMessage passed in.
    • Method Detail

      • doArtifactResolution

        public static void doArtifactResolution​(jakarta.servlet.http.HttpServletRequest request,
                                                jakarta.servlet.http.HttpServletResponse response)
        This method processes the artifact resolution request coming from a service provider. It processes the artifact resolution request sent by the service provider and sends back a proper SOAPMessage that contains an Assertion.
        Parameters:
        request - the HttpServletRequest object
        response - the HttpServletResponse object
      • onMessage

        public static jakarta.xml.soap.SOAPMessage onMessage​(jakarta.xml.soap.SOAPMessage message,
                                                             jakarta.servlet.http.HttpServletRequest request,
                                                             jakarta.servlet.http.HttpServletResponse response,
                                                             String realm,
                                                             String idpEntityID)
                                                      throws SAML2Exception
        This method generates a SOAPMessage containing the ArtifactResponse that is corresponding to the ArtifactResolve contained in the SOAPMessage passed in.
        Parameters:
        message - SOAPMessage contains a ArtifactResolve
        request - the HttpServletRequest object
        realm - the realm to where the identity provider belongs
        idpEntityID - the entity id of the identity provider
        Returns:
        SOAPMessage contains the ArtifactResponse
        Throws:
        SAML2Exception - if the operation is not successful