Class AuthnQueryUtil


  • public class AuthnQueryUtil
    extends Object
    This class provides methods to send or process AuthnQuery.
    • Method Detail

      • sendAuthnQuery

        public static Response sendAuthnQuery​(AuthnQuery authnQuery,
                                              String authnAuthorityEntityID,
                                              String realm,
                                              String binding)
                                       throws SAML2Exception
        This method sends the AuthnQuery to specifiied authentication authority and returns Response coming from the authentication authority.
        Parameters:
        authnQuery - the AuthnQuery object
        authnAuthorityEntityID - entity ID of authentication authority
        realm - the realm of hosted entity
        binding - the binding
        Returns:
        the Response object
        Throws:
        SAML2Exception - if the operation is not successful
      • processAuthnQuery

        public static Response processAuthnQuery​(AuthnQuery authnQuery,
                                                 jakarta.servlet.http.HttpServletRequest request,
                                                 jakarta.servlet.http.HttpServletResponse response,
                                                 String authnAuthorityEntityID,
                                                 String realm)
                                          throws SAML2Exception
        This method processes the AuthnQuery coming from a requester.
        Parameters:
        authnQuery - the AuthnQuery object
        request - the HttpServletRequest object
        response - the HttpServletResponse object
        authnAuthorityEntityID - entity ID of authentication authority
        realm - the realm of hosted entity
        Returns:
        the Response object
        Throws:
        SAML2Exception - if the operation is not successful