There is an object model provided with JBoss XACML in the package org.jboss.security.xacml.core.model.policy. This is the package that one will work with in the construction of elements associated with a Policy or PolicySet. There is an utility factory class that is provided in org.jboss.security.xacml.factories.PolicyAttributeFactory which can be used to create the AttributeValueTypes used in a Policy.
The interface org.jboss.security.xacml.interfaces.XACMLPolicy represents either a Policy or a PolicySet and is represented in the method in the PDP when you want to pass a set of pre-constructed instances, as shown below:
PolicyType policyType = constructPolicy(); PolicyDecisionPoint pdp = new JBossPDP(); XACMLPolicy policy = PolicyFactory.createPolicy(policyType); Set<XACMLPolicy> policies = new HashSet<XACMLPolicy>(); policies.add(policy); //Pass a set of policies (and/or policy sets) to the PDP pdp.setPolicies(policies);