Package com.sun.xacml

Examples of com.sun.xacml.ConfigurationStore


     * Default constructor. This creates a <code>SimplePDP</code> with a <code>PDP</code> based on
     * the configuration defined by the runtime property com.sun.xcaml.PDPConfigFile.
     */
    public SimplePDP() throws Exception {
        // load the configuration
        ConfigurationStore store = new ConfigurationStore();

        // use the default factories from the configuration
        store.useDefaultFactories();

        // get the PDP configuration's and setup the PDP
        pdp = new PDP(store.getDefaultPDPConfig());
    }
View Full Code Here


     * Private helper that configures the pdp and the factories based on the settings in the
     * run-time configuration file.
     */
    private void configurePDP() throws Exception {
        // load the configuration
        ConfigurationStore cs = new ConfigurationStore();

        // use the default factories from the configuration
        cs.useDefaultFactories();

        // get the PDP configuration's policy finder modules...
        PDPConfig config = cs.getDefaultPDPConfig();
        PolicyFinder finder = config.getPolicyFinder();
        Set<PolicyFinderModule> policyModules = finder.getModules();

        // ...and add the module used by the tests
        policyModules.add(policyModule);
View Full Code Here

    private void configurePDP() throws Exception {
        // load the configuration

        System.setProperty(ConfigurationStore.PDP_CONFIG_PROPERTY, "target" + File.separator
                + "resources" + File.separator + "config.xml");
        ConfigurationStore cs = new ConfigurationStore();

        // use the default factories from the configuration
        cs.useDefaultFactories();

        // get the PDP configuration's policy finder modules...
        PDPConfig config = cs.getDefaultPDPConfig();
        PolicyFinder finder = config.getPolicyFinder();
        Set<PolicyFinderModule> policyModules = finder.getModules();

        // ...and add the module used by the tests
        policyModules.add(policyModule);
View Full Code Here

TOP

Related Classes of com.sun.xacml.ConfigurationStore

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.