Class AssertionIDRequestUtil


  • public class AssertionIDRequestUtil
    extends Object
    This class provides methods to send or process AssertionIDRequest.
    • Method Detail

      • sendAssertionIDRequest

        public static Response sendAssertionIDRequest​(AssertionIDRequest assertionIDRequest,
                                                      String samlAuthorityEntityID,
                                                      String role,
                                                      String realm,
                                                      String binding)
                                               throws SAML2Exception
        Sends the AssertionIDRequest to specifiied Assertion ID Request Service and returns Response coming from the Assertion ID Request Service.
        Parameters:
        assertionIDRequest - the AssertionIDRequest object
        samlAuthorityEntityID - entity ID of SAML authority
        role - SAML authority role, for example, SAML2Constants.ATTR_AUTH_ROLE, SAML2Constants.AUTHN_AUTH_ROLE or SAML2Constants.IDP_ROLE
        realm - the realm of hosted entity
        binding - the binding
        Returns:
        the Response object
        Throws:
        SAML2Exception - if the operation is not successful
      • sendAssertionIDRequestURI

        public static Assertion sendAssertionIDRequestURI​(String assertionID,
                                                          String samlAuthorityEntityID,
                                                          String role,
                                                          String realm)
                                                   throws SAML2Exception
        Sends the Assertion ID to specifiied Assertion ID Request Service and returns Assertion coming from the Assertion ID Request Service.
        Parameters:
        assertionID - the asssertionID object
        samlAuthorityEntityID - entity ID of SAML authority
        role - SAML authority role, for example, SAML2Constants.ATTR_AUTH_ROLE, SAML2Constants.AUTHN_AUTH_ROLE or SAML2Constants.IDP_ROLE
        realm - the realm of hosted entity
        Returns:
        the Assertion object
        Throws:
        SAML2Exception - if the operation is not successful
      • processAssertionIDRequestURI

        public static void processAssertionIDRequestURI​(jakarta.servlet.http.HttpServletRequest request,
                                                        jakarta.servlet.http.HttpServletResponse response,
                                                        String samlAuthorityEntityID,
                                                        String role,
                                                        String realm)
                                                 throws IOException
        Gets assertion ID from URI and returns assertion if found.
        Parameters:
        request - the HttpServletRequest object
        response - the HttpServletResponse object
        samlAuthorityEntityID - entity ID of SAML authority
        role - SAML authority role
        realm - the realm of hosted entity
        Throws:
        IOException - if response can't be sent
      • processAssertionIDRequest

        public static Response processAssertionIDRequest​(AssertionIDRequest assertionIDRequest,
                                                         jakarta.servlet.http.HttpServletRequest request,
                                                         jakarta.servlet.http.HttpServletResponse response,
                                                         String samlAuthorityEntityID,
                                                         String role,
                                                         String realm)
                                                  throws SAML2Exception
        This method processes the AssertionIDRequest coming from a requester.
        Parameters:
        assertionIDRequest - the AssertionIDRequest object
        request - the HttpServletRequest object
        response - the HttpServletResponse object
        samlAuthorityEntityID - entity ID of SAML authority
        role - the role of SAML authority
        realm - the realm of SAML authority
        Returns:
        the Response object
        Throws:
        SAML2Exception - if the operation is not successful