Package org.jboss.security.xacml.interfaces

Examples of org.jboss.security.xacml.interfaces.PolicyLocator


      //Take care of the locators
      LocatorsType locatorsType = pdp.getLocators();
      List<LocatorType> locs = locatorsType.getLocator();
      for (LocatorType lt : locs)
      {
         PolicyLocator pl = (PolicyLocator) loadClass(lt.getName()).newInstance();
         pl.setPolicies(policies);
         this.locators.add(pl);
      }
   }
View Full Code Here


         AbstractLocator locator = (AbstractLocator) loadClass(lt.getName()).newInstance();
         locator.setOptions(options);
        
         if(locator instanceof PolicyLocator)
         {
            PolicyLocator pl = (PolicyLocator)locator;
            if(justLocators == false)    
               pl.setPolicies(policies);
            this.policyLocators.add(pl);
         }
         else
            if(locator instanceof AttributeLocator)
            {
               AttributeLocator attribLocator = (AttributeLocator) locator;
               this.attributeLocators.add(attribLocator);
            }
            else
               if(locator instanceof ResourceLocator)
               {
                  ResourceLocator resourceLocator = (ResourceLocator) locator;
                  this.resourceLocators.add(resourceLocator);
               }
      }
     
      //Since we do not have any policies in the config file, we need to specify
      //the policy finder
      if(justLocators)
      {
         int len = this.policyLocators.size();
         if(len > 0)
         {
            for(PolicyLocator pl: policyLocators)
            {
               pl.set(XACMLConstants.POLICY_FINDER, this.policyFinder);
            }
         }
      }
     
      this.bootstrapPDP();
View Full Code Here

      policies.add(policy);

      pdp.setPolicies(policies);

      //Add the basic locators also
      PolicyLocator policyLocator = new JBossPolicyLocator();
      policyLocator.setPolicies(policies); //Locators need to be given the policies

      Set<PolicyLocator> locators = new HashSet<PolicyLocator>();
      locators.add(policyLocator);
      pdp.setLocators(locators);
      assertNotNull("JBossPDP is != null", pdp);
View Full Code Here

      policies.add(policy);

      pdp.setPolicies(policies);

      //Add the basic locators also
      PolicyLocator policyLocator = new JBossPolicyLocator();
      policyLocator.setPolicies(policies); //Locators need to be given the policies

      Set<PolicyLocator> locators = new HashSet<PolicyLocator>();
      locators.add(policyLocator);
      pdp.setLocators(locators);
      assertNotNull("JBossPDP is != null", pdp);
View Full Code Here

         AbstractLocator locator = (AbstractLocator) loadClass(lt.getName()).newInstance();
         locator.setOptions(options);
        
         if(locator instanceof PolicyLocator)
         {
            PolicyLocator pl = (PolicyLocator)locator;
            if(justLocators == false)    
               pl.setPolicies(policies);
            this.policyLocators.add(pl);
         }
         else
            if(locator instanceof AttributeLocator)
            {
               AttributeLocator attribLocator = (AttributeLocator) locator;
               this.attributeLocators.add(attribLocator);
            }
            else
               if(locator instanceof ResourceLocator)
               {
                  ResourceLocator resourceLocator = (ResourceLocator) locator;
                  this.resourceLocators.add(resourceLocator);
               }
      }
     
      //Since we do not have any policies in the config file, we need to specify
      //the policy finder
      if(justLocators)
      {
         int len = this.policyLocators.size();
         if(len > 0)
         {
            for(PolicyLocator pl: policyLocators)
            {
               pl.set(XACMLConstants.POLICY_FINDER, this.policyFinder);
            }
         }
      }
     
      this.bootstrapPDP();
View Full Code Here

      //Take care of the locators
      LocatorsType locatorsType = pdp.getLocators();
      List<LocatorType> locs = locatorsType.getLocator();
      for(LocatorType lt:locs)
      {
         PolicyLocator pl = (PolicyLocator) loadClass(lt.getName()).newInstance();
         pl.setPolicies(policies);
         this.locators.add(pl);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.xacml.interfaces.PolicyLocator

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.