Class QueryClient


  • public class QueryClient
    extends Object
    The QueryClient class provides Query Requester clients with a method to send requests using SOAP connection to SOAP endpoint.
    • Field Detail

      • debug

        public static Debug debug
    • Method Detail

      • processXACMLQuery

        public static Response processXACMLQuery​(RequestAbstract request,
                                                 String pepEntityID,
                                                 String pdpEntityID)
                                          throws SAML2Exception
        Returns SAMLv2 Response. SAMLv2 request is sent enclosed in the body of a SOAP Message to a SOAP endpoint. Prior to sending the request query, attributes required for completeness of the SAMLv2 Request will be set (eg. Issuer) if not already set. Message will be signed if signing is enabled. SAMLv2 Query Request will be enclosed in the SOAP Body to create a SOAP message to send to the server.
        Parameters:
        request - the SAMLv2 RequestAbstract object.
        pepEntityID - entity identifier of the hosted query requester.
        pdpEntityID - entity identifier of the remote server.
        Returns:
        SAMLv2 Response received from the Query Responder.
        Throws:
        SAML2Exception - if there is an error processing the query.
      • verifySignedResponse

        public static boolean verifySignedResponse​(String pepEntityID,
                                                   String pdpEntityID,
                                                   Response response)
                                            throws SAML2Exception
        Verify the signature in Response.
        Parameters:
        pepEntityID - entity identifier of PEP.
        pdpEntityID - entity identifier of PDP.
        response - Response to be verified
        Returns:
        true if signature is valid.
        Throws:
        SAML2Exception