Package com.sun.xacml

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


    @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

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

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

            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

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

        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

    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

            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

/* 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

        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

Related Classes of com.sun.xacml.PDP

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.