org.fcrepo.server.security.xacml.pdp.finder.policy
Class PolicyManager
java.lang.Object
org.fcrepo.server.security.xacml.pdp.finder.policy.PolicyManager
public class PolicyManager
- extends Object
This class interacts with the policy cache on behalf of the PolicyFinder
modules. It also does the matching of the policies and creation of policy
sets.
- Author:
- nishen@melcoe.mq.edu.au
|
Constructor Summary |
PolicyManager(PolicyIndex policyIndex,
com.sun.xacml.combine.PolicyCombiningAlgorithm combiningAlg,
com.sun.xacml.finder.PolicyFinder policyFinder)
This constructor creates a PolicyManager instance. |
|
Method Summary |
com.sun.xacml.AbstractPolicy |
getPolicy(com.sun.xacml.EvaluationCtx eval)
Obtains a policy or policy set of matching policies from the policy
store. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyManager
public PolicyManager(PolicyIndex policyIndex,
com.sun.xacml.combine.PolicyCombiningAlgorithm combiningAlg,
com.sun.xacml.finder.PolicyFinder policyFinder)
- This constructor creates a PolicyManager instance. It takes a
PolicyFinder its argument. Its purpose is to obtain a set of policies
from the Policy Index , match them against the evaluation context and
return a policy or policy set that conforms to the evaluation context.
- Parameters:
polFinder - the policy finder
- Throws:
URISyntaxException
{@link - PolicyStoreException}
getPolicy
public com.sun.xacml.AbstractPolicy getPolicy(com.sun.xacml.EvaluationCtx eval)
throws TopLevelPolicyException,
PolicyIndexException
- Obtains a policy or policy set of matching policies from the policy
store. If more than one policy is returned it creates a dynamic policy
set that contains all the applicable policies.
- Parameters:
eval - the Evaluation Context
- Returns:
- the Policy/PolicySet that applies to this EvaluationCtx
- Throws:
TopLevelPolicyException
{@link - PolicyStoreException}
PolicyIndexException
Copyright © 2012 DuraSpace. All Rights Reserved.