There is an implementation of the org.jboss.security.xacml.interfaces.PolicyDecisionPoint in JBoss called as org.jboss.security.xacml.core.JBossPDP. There are few variants of the construction of the JBossPDP as shown below.
public JBossPDP(InputStream configFile); public JBossPDP(InputSource configFile); public JBossPDP(Node configFile); public JBossPDP(XMLStreamReader configFile); public JBossPDP(URL configFileURL);
A PDP can be provided with policies via a configuration file or one can make use of the JAXB2 object model in JBoss XACML to construct the Policy/PolicySet instances and then provide them to the PDP. An example usage of the PDP with a configuration file is shown below:
import org.jboss.security.xacml.interfaces.PolicyDecisionPoint; import org.jboss.security.xacml.core.JBossPDP; ClassLoader tcl = Thread.currentThread().getContextClassLoader(); InputStream is = tcl.getResourceAsStream("test/config/interopPolicySetConfig.xml"); PolicyDecisionPoint pdp = new JBossPDP(is);