[jboss-dev-forums] [Design of Security on JBoss] - Re: Policy Implementation for VFS

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Oct 6 16:43:30 EDT 2008


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/PolicyConfiguration.html

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180664#4180664

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180664



More information about the jboss-dev-forums mailing list