eu.emi.dsr.pdp.local
Class LocalPolicyStore

java.lang.Object
  extended by eu.emi.dsr.pdp.local.LocalPolicyStore

public class LocalPolicyStore
extends Object

Initially loads policies, also able to reload them.
Policies are read from a configurable directory. Configuration file is monitored for changes, after a change policies from directory are reloaded.
Directory contents is set of files, which should be either XACML 2.0 policies or policy sets. Those policies are combined with a configurable combining algorithm.

Author:
golbi

Field Summary
static String COMBINING_ALG_DEF
           
static String COMBINING_ALG_KEY
           
static String DIR_DEF
           
static String DIR_KEY
           
static org.apache.log4j.Logger log
           
static String POLICY_ALG_DENY_OVERRIDES
           
static String POLICY_ALG_FIRST_APPLICABLE
           
static String POLICY_ALG_ONLY_ONE
           
static String POLICY_ALG_ORDERED_DENY_OVERRIDES
           
static String POLICY_ALG_ORDERED_PERMIT_OVERRIDES
           
static String POLICY_ALG_PERMIT_OVERRIDES
           
static String SPOLICY_ALG_DENY_OVERRIDES
           
static String SPOLICY_ALG_FIRST_APPLICABLE
           
static String SPOLICY_ALG_ONLY_ONE
           
static String SPOLICY_ALG_ORDERED_DENY_OVERRIDES
           
static String SPOLICY_ALG_ORDERED_PERMIT_OVERRIDES
           
static String SPOLICY_ALG_PERMIT_OVERRIDES
           
static String WILDCARD_DEF
           
static String WILDCARD_KEY
           
 
Constructor Summary
LocalPolicyStore(PolicyListener pdp, String configurationFile)
           
LocalPolicyStore(PolicyListener pdp, String configurationFile, int interval)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log

POLICY_ALG_DENY_OVERRIDES

public static final String POLICY_ALG_DENY_OVERRIDES
See Also:
Constant Field Values

SPOLICY_ALG_DENY_OVERRIDES

public static final String SPOLICY_ALG_DENY_OVERRIDES
See Also:
Constant Field Values

POLICY_ALG_PERMIT_OVERRIDES

public static final String POLICY_ALG_PERMIT_OVERRIDES
See Also:
Constant Field Values

SPOLICY_ALG_PERMIT_OVERRIDES

public static final String SPOLICY_ALG_PERMIT_OVERRIDES
See Also:
Constant Field Values

POLICY_ALG_FIRST_APPLICABLE

public static final String POLICY_ALG_FIRST_APPLICABLE
See Also:
Constant Field Values

SPOLICY_ALG_FIRST_APPLICABLE

public static final String SPOLICY_ALG_FIRST_APPLICABLE
See Also:
Constant Field Values

POLICY_ALG_ONLY_ONE

public static final String POLICY_ALG_ONLY_ONE
See Also:
Constant Field Values

SPOLICY_ALG_ONLY_ONE

public static final String SPOLICY_ALG_ONLY_ONE
See Also:
Constant Field Values

POLICY_ALG_ORDERED_DENY_OVERRIDES

public static final String POLICY_ALG_ORDERED_DENY_OVERRIDES
See Also:
Constant Field Values

SPOLICY_ALG_ORDERED_DENY_OVERRIDES

public static final String SPOLICY_ALG_ORDERED_DENY_OVERRIDES
See Also:
Constant Field Values

POLICY_ALG_ORDERED_PERMIT_OVERRIDES

public static final String POLICY_ALG_ORDERED_PERMIT_OVERRIDES
See Also:
Constant Field Values

SPOLICY_ALG_ORDERED_PERMIT_OVERRIDES

public static final String SPOLICY_ALG_ORDERED_PERMIT_OVERRIDES
See Also:
Constant Field Values

DIR_KEY

public static final String DIR_KEY
See Also:
Constant Field Values

DIR_DEF

public static final String DIR_DEF
See Also:
Constant Field Values

COMBINING_ALG_KEY

public static final String COMBINING_ALG_KEY
See Also:
Constant Field Values

COMBINING_ALG_DEF

public static final String COMBINING_ALG_DEF
See Also:
Constant Field Values

WILDCARD_KEY

public static final String WILDCARD_KEY
See Also:
Constant Field Values

WILDCARD_DEF

public static final String WILDCARD_DEF
See Also:
Constant Field Values
Constructor Detail

LocalPolicyStore

public LocalPolicyStore(PolicyListener pdp,
                        String configurationFile)
                 throws IOException,
                        org.herasaf.xacml.core.SyntaxException,
                        JAXBException,
                        SAXException
Throws:
IOException
org.herasaf.xacml.core.SyntaxException
JAXBException
SAXException

LocalPolicyStore

public LocalPolicyStore(PolicyListener pdp,
                        String configurationFile,
                        int interval)
                 throws IOException,
                        org.herasaf.xacml.core.SyntaxException,
                        JAXBException,
                        SAXException
Throws:
IOException
org.herasaf.xacml.core.SyntaxException
JAXBException
SAXException


Copyright © 2012. All Rights Reserved.