Class AttributeQueryClient

java.lang.Object
org.codice.ddf.security.claims.attributequery.common.AttributeQueryClient

public class AttributeQueryClient extends Object
  • Constructor Details

    • AttributeQueryClient

      public AttributeQueryClient(javax.xml.ws.Dispatch<StreamSource> dispatch, ddf.security.samlp.impl.SimpleSign simpleSign, String externalAttributeStoreUrl, String issuer, String destination)
  • Method Details

    • query

      public org.opensaml.saml.saml2.core.Assertion query(String username)
      Query the external attribute store using an AttributeQuery request.
      Returns:
      Assertion of the response.
    • sendRequest

      protected Document sendRequest(Document requestDocument)
      Sends the request to the external attribute store via a Dispatch client.
      Parameters:
      requestDocument - of the request.
      Returns:
      Document of the response or null if the response is empty.
      Throws:
      AttributeQueryException
    • setDispatch

      public void setDispatch(javax.xml.ws.Dispatch<StreamSource> dispatch)
    • setSimpleSign

      public void setSimpleSign(ddf.security.samlp.impl.SimpleSign simpleSign)
    • setExternalAttributeStoreUrl

      public void setExternalAttributeStoreUrl(String externalAttributeStoreUrl)
    • setIssuer

      public void setIssuer(String issuer)
    • setDestination

      public void setDestination(String destination)