Package org.jboss.security.authorization

Examples of org.jboss.security.authorization.PolicyRegistration


    */
   @Override
   protected void setUp()
   {
      // register an ACL policy containing ACL definitions with the PolicyRegistration.
      PolicyRegistration registration = new JBossPolicyRegistration();
      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
      registration.registerPolicy("ID", PolicyRegistration.ACL, tcl.getResourceAsStream("config/jboss-acl.xml"));

      // create an application policy that contains an ACL configuration.
      ApplicationPolicy ap = new ApplicationPolicy("test-acl");
      ACLInfo aclInfo = new ACLInfo("test-acl");
      // set the TestACLProvider with the PolicyRegistration created above.
View Full Code Here


      return inv.getAdvisor().resolveAnnotation(Stateless.class) != null;
   }
  
   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         InitialContext ic = new InitialContext();
         policyRegistration = (PolicyRegistration) ic.lookup("java:/policyRegistration");
      }
View Full Code Here

TOP

Related Classes of org.jboss.security.authorization.PolicyRegistration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.