Examples of PDP


Examples of com.sun.xacml.PDP

            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

Examples of com.sun.xacml.PDP

    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest req, HttpServletResponse resp)
            throws Exception {

        PDP pdp = GeoXACMLConfig.getPDP();
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setIgnoringComments(true);
        factory.setIgnoringElementContentWhitespace(true);
        factory.setNamespaceAware(true);

        String booleanString = req.getParameter("validate");
        Boolean validate = new Boolean(booleanString);

        if (validate) {
            factory.setSchema(GeoXACML.getContextSchema());
            logger.info("Request validation enabled");
        }

        DocumentBuilder builder = factory.newDocumentBuilder();
        Document doc = builder.parse(req.getInputStream());

        RequestCtx request = RequestCtx.getInstance(doc.getDocumentElement());
        ResponseCtx response = pdp.evaluate(request);

        response.encode(resp.getOutputStream(), new Indenter(0), true);
        return null;
    }
View Full Code Here

Examples of com.sun.xacml.PDP

        if (cacheInterval != null) {
            pdpDecisionCachingInterval = Integer.parseInt(cacheInterval);
        }

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

Examples of com.sun.xacml.PDP

            policyFileList));*/
      //policyModules.add(new StaticRefPolicyFinderModule(policyFileList));
      policyModules.add(new URLPolicyFinderModule());
      policyFinder.setModules(policyModules);
     
      PDP pdp = new PDP(new PDPConfig(attributeFinder,
            policyFinder, null));
      return pdp.evaluate(request);
   }
View Full Code Here

Examples of com.sun.xacml.PDP

    this.pool = pool;
   
    util = new XACMLUtil(this);
   
    pdpConfig = new PDPConfig(createAttributeFinder(), createPolicyFinder(), createResourceFinder());
    pdp = new PDP(pdpConfig);
  }
View Full Code Here

Examples of com.sun.xacml.PDP

        newPdp();
    }

    @Override
    public final void newPdp() {
        PDP pdp = new PDP(m_pdpConfig);
        synchronized (this) {
            this.m_pdp = pdp;
            //so enforce() will wait, if this pdp update is in progress
        }
    }
View Full Code Here

Examples of com.sun.xacml.PDP

    private final PDP m_pdp;

    public MelcoePDPImpl(PDPConfig pdpConfig)
            throws MelcoePDPException {
        m_pdp = new PDP(pdpConfig);

        logger.info("PDP Instantiated and initialised!");
    }
View Full Code Here

Examples of com.sun.xacml.PDP

            policyFileList));*/
      //policyModules.add(new StaticRefPolicyFinderModule(policyFileList));
      policyModules.add(new URLPolicyFinderModule());
      policyFinder.setModules(policyModules);
     
      PDP pdp = new PDP(new PDPConfig(attributeFinder,
            policyFinder, null));
      return pdp.evaluate(request);
   }
View Full Code Here

Examples of com.sun.xacml.PDP

/* 147 */     policyModules.add(new EnclosingPolicyFinderModule(policy));
/*     */
/* 151 */     policyModules.add(new URLPolicyFinderModule());
/* 152 */     policyFinder.setModules(policyModules);
/*     */
/* 154 */     PDP pdp = new PDP(new PDPConfig(attributeFinder, policyFinder, null));
/*     */
/* 156 */     return pdp.evaluate(request);
/*     */   }
View Full Code Here

Examples of com.sun.xacml.PDP

        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
TOP
Copyright © 2018 www.massapi.com. 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.