JBoss Community

Using many policy sets

created by john john in PicketBox Development - View the full discussion

Hi,

under address http://community.jboss.org/wiki/XACMLRBACLocator there is an examle of using many policy sets using configuration xml file.

Is it possible to use many policy sets and load them from the code? e.g.

 

When I write:

 

XACMLPolicy ps1 = PolicyFactory.createPolicySet(new FileInputStream(new File("policySet1.xml")));

XACMLPolicy ps2 = PolicyFactory.createPolicy(new FileInputStream(new File("policySet2.xml")));

 

policies = new HashSet<XACMLPolicy>();

policies.add(ps1);

policies.add(ps2);

Reply to this message by going to Community

Start a new discussion in PicketBox Development at Community