Package com.sun.xacml.finder

Examples of com.sun.xacml.finder.AttributeFinder


            CurrentEnvModule envModule = new CurrentEnvModule();

            // xpath support
            GeoSelectorModule selectorModule = new GeoSelectorModule();

            AttributeFinder attrFinder = new AttributeFinder();
            List<AttributeFinderModule> attrModules = new ArrayList<AttributeFinderModule>();
            attrModules.add(envModule);
            attrModules.add(selectorModule);
            attrFinder.setModules(attrModules);

            pdp = new PDP(new PDPConfig(attrFinder, policyFinder, null));
            XACMLUtil.getXACMLLogger().info("GeoXACML repository loaded ");
            return pdp;
        }
View Full Code Here


        CurrentEnvModule envAttributeModule = new CurrentEnvModule();
        SelectorModule selectorAttributeModule = new SelectorModule();

        // Setup the AttributeFinder just like we setup the PolicyFinder. Note
        // that unlike with the policy finder, the order matters here.
        AttributeFinder attributeFinder = new AttributeFinder();
        List<Object> attributeModules = new ArrayList<Object>();
        attributeModules.add(envAttributeModule);
        attributeModules.add(selectorAttributeModule);
        attributeModules.add(new CarbonAttributeFinder());
        attributeFinder.setModules(attributeModules);

        String cacheInterval = ServerConfiguration.getInstance().getFirstProperty(
                PDP_DECISION_CACHING_INTERVAL);

        if (cacheInterval != null) {
View Full Code Here

    * @return xacml response
    */
   public static synchronized ResponseCtx getXACMLResponse(RequestCtx request,
         Policy policy)
   {
      AttributeFinder attributeFinder = new AttributeFinder();
      List attributeModules = new ArrayList()
      attributeModules.add(new CurrentEnvModule());
      attributeModules.add(new SelectorModule());
      attributeFinder.setModules(attributeModules);
     
      //List policyFileList = Arrays.asList(policyFiles);
      PolicyFinder policyFinder = new PolicyFinder();
      HashSet policyModules = new HashSet();
      policyModules.add(new EnclosingPolicyFinderModule(policy));
View Full Code Here

  {
    final List<Object> modules = new ArrayList<Object>(2);
    modules.add(new UserAttributeModule(this));
    modules.add(new CurrentEnvModule());
   
    final AttributeFinder attributeFinder = new AttributeFinder();
    attributeFinder.setModules(modules);
    return attributeFinder;
  }
View Full Code Here

    }

    public PDPConfig getPDPConfig(List<AttributeFinderModule> attributeFinders,
                                  Set<PolicyFinderModule> policyFinders,
                                  List<ResourceFinderModule> resourceFinders) {
        AttributeFinder attr = new AttributeFinder();
        attr.setModules(attributeFinders);
        PolicyFinder policy = new PolicyFinder();
        policy.setModules(policyFinders);
        ResourceFinder rsrc = new ResourceFinder();
        rsrc.setModules(resourceFinders);
        return new PDPConfig(attr, policy, rsrc);
View Full Code Here

                  + " has no policy finder modules");
         policyModules.addAll(finderModulesList);
     
      policyFinder.setModules(policyModules);
     
      AttributeFinder attributeFinder = new AttributeFinder();
      List<AttributeFinderModule> attributeModules = new ArrayList<AttributeFinderModule>()
      attributeModules.add(new CurrentEnvModule());
      attributeModules.add(new SelectorModule());
      attributeFinder.setModules(attributeModules);
     
      com.sun.xacml.PDP pdp = new com.sun.xacml.PDP(new PDPConfig(attributeFinder,
            policyFinder, null));
      RequestCtx req = (RequestCtx) request.get(XACMLConstants.REQUEST_CTX);
      if(req == null)
View Full Code Here

    * @return xacml response
    */
   public static synchronized ResponseCtx getXACMLResponse(RequestCtx request,
         Policy policy)
   {
      AttributeFinder attributeFinder = new AttributeFinder();
      List attributeModules = new ArrayList()
      attributeModules.add(new CurrentEnvModule());
      attributeModules.add(new SelectorModule());
      attributeFinder.setModules(attributeModules);
     
      //List policyFileList = Arrays.asList(policyFiles);
      PolicyFinder policyFinder = new PolicyFinder();
      HashSet policyModules = new HashSet();
      policyModules.add(new EnclosingPolicyFinderModule(policy));
View Full Code Here

/* 125 */     return policyID;
/*     */   }
/*     */
/*     */   public static synchronized ResponseCtx getXACMLResponse(RequestCtx request, Policy policy)
/*     */   {
/* 138 */     AttributeFinder attributeFinder = new AttributeFinder();
/* 139 */     List attributeModules = new ArrayList();
/* 140 */     attributeModules.add(new CurrentEnvModule());
/* 141 */     attributeModules.add(new SelectorModule());
/* 142 */     attributeFinder.setModules(attributeModules);
/*     */
/* 145 */     PolicyFinder policyFinder = new PolicyFinder();
/* 146 */     HashSet policyModules = new HashSet();
/* 147 */     policyModules.add(new EnclosingPolicyFinderModule(policy));
/*     */
View Full Code Here

        SelectorModule selectorAttributeModule = new SelectorModule();

        // Setup the AttributeFinder just like we setup the PolicyFinder. Note
        // that unlike with the policy finder, the order matters here. See the
        // the javadocs for more details.
        AttributeFinder attributeFinder = new AttributeFinder();
        List<AttributeFinderModule> attributeModules = new ArrayList<AttributeFinderModule>();
        attributeModules.add(envAttributeModule);
        attributeModules.add(selectorAttributeModule);
        attributeFinder.setModules(attributeModules);

        // finally, initialize our pdp
        pdp = new PDP(new PDPConfig(attributeFinder, policyFinder, null));
    }
View Full Code Here

        }

        // after loading the modules, use the collections to setup a
        // PDPConfig based on this pdp element

        AttributeFinder attrFinder = new AttributeFinder();
        attrFinder.setModules(attrModules);

        PolicyFinder policyFinder = new PolicyFinder();
        policyFinder.setModules(policyModules);

        ResourceFinder rsrcFinder = new ResourceFinder();
View Full Code Here

TOP

Related Classes of com.sun.xacml.finder.AttributeFinder

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.