Class QueryClient
- java.lang.Object
-
- com.sun.identity.saml2.soapbinding.QueryClient
-
public class QueryClient extends Object
TheQueryClient
class provides Query Requester clients with a method to send requests using SOAP connection to SOAP endpoint.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Response
processXACMLQuery(RequestAbstract request, String pepEntityID, String pdpEntityID)
Returns SAMLv2Response
.static boolean
verifySignedResponse(String pepEntityID, String pdpEntityID, Response response)
Verify the signature inResponse
.
-
-
-
Field Detail
-
debug
public static Debug debug
-
-
Method Detail
-
processXACMLQuery
public static Response processXACMLQuery(RequestAbstract request, String pepEntityID, String pdpEntityID) throws SAML2Exception
Returns SAMLv2Response
. 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 SAMLv2RequestAbstract
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 inResponse
.- Parameters:
pepEntityID
- entity identifier of PEP.pdpEntityID
- entity identifier of PDP.response
-Response
to be verified- Returns:
- true if signature is valid.
- Throws:
SAML2Exception
-
-