Use the SOAPSAMLXACML API to call an XACML PDP

WARNING - TOPIC NOT WRITTEN - TOPIC ID: 468

This topic has not yet been written. The content below is from the topic description.
API to make calls to XACML PDP Users may have difficulty in creating soap messages, saml payload etc to make the XACML authorization request calls.  For this reason, starting 1.0.0.alpha5 of JBossIdentity stack, we have an API class to mitigate this pain. Assumptions: You are familiar with JBossXACML API. You have JBossIdentity stack installed in JBoss AS or Tomcat.   The API is as follows: import org.jboss.identity.federation.api.soap.SOAPSAMLXACML; import org.jboss.identity.federation.api.soap.SOAPSAMLXACML.Result;     //Where your endpoint is located String endpoint = "http://localhost:8080/test/SOAPServlet";   //If you want to name your issuer of SAML request String issuer = "testIssuer";   //Create an XACML Request RequestType xacmlRequest = getXACMLRequest(); //Look in example below SOAPSAMLXACML soapSAMLXACML = new SOAPSAMLXACML();          Result result = soapSAMLXACML.send(endpoint, issuer, xacmlRequest); assertTrue("No fault", result.isFault() == false); assertTrue("Decision available", result.isResponseAvailable()); assertTrue("Deny", result.isDeny());