http://wiki.jboss.org/wiki/DelegatingPolicy
Some pseudocode:
|
| Deployer:
| String ctxID = "vfs:/xyz";
|
| PolicyConfiguration pc = PolicyConfigurationFactory.getPolicyConfiguration(ctxID,
false);
|
| VFSDeployPermission vfsd = new VFSDP(xyz);
| pc.addToRole("Administrator", vfsd);
| pc.addToUnchecked()
| ...
| pc.commit()
|
| Enforcement:
| Policy.getPolicy().implies(myvfsperm);
|
Reference:
http://java.sun.com/javaee/5/docs/api/javax/security/jacc/PolicyConfigura...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180664#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...