public interface PolicyIndex
| Modifier and Type | Field and Description |
|---|---|
static String |
XACML_RESOURCE_ID |
static String |
XACML20_POLICY_NS |
| Modifier and Type | Method and Description |
|---|---|
String |
addPolicy(String name,
String document)
Generates a policy based on the string data provided and the name.
|
boolean |
clear()
Clear the policy index completely
|
boolean |
contains(String policyName)
Check if the policy identified by policyName exists.
|
boolean |
deletePolicy(String name)
Removes the policy given by name from the data store.
|
Map<String,com.sun.xacml.AbstractPolicy> |
getPolicies(com.sun.xacml.EvaluationCtx eval,
com.sun.xacml.finder.PolicyFinder policyFinder)
Extracts a list of policies from the Policy Index that are relevant to
the given Evaluation Context.
|
com.sun.xacml.AbstractPolicy |
getPolicy(String name,
com.sun.xacml.finder.PolicyFinder policyFinder)
Obtains the policy with the provided name from the Policy Store.
|
boolean |
updatePolicy(String name,
String newDocument)
Generates a new policy based for the given policy name and replaces the
old policy in the Policy Store with it.
|
static final String XACML20_POLICY_NS
static final String XACML_RESOURCE_ID
Map<String,com.sun.xacml.AbstractPolicy> getPolicies(com.sun.xacml.EvaluationCtx eval, com.sun.xacml.finder.PolicyFinder policyFinder) throws PolicyIndexException
eval - the Evaluation Context from which to match policies againstPolicyIndexExceptioncom.sun.xacml.AbstractPolicy getPolicy(String name, com.sun.xacml.finder.PolicyFinder policyFinder) throws PolicyIndexException
name - the name of the policy to returnPolicyStoreExceptionPolicyIndexExceptionString addPolicy(String name, String document) throws PolicyIndexException
name - document - the policy as a String{@link - PolicyStoreException}PolicyIndexExceptionboolean deletePolicy(String name) throws PolicyIndexException
name - the name of the policyPolicyStoreExceptionPolicyIndexExceptionboolean updatePolicy(String name, String newDocument) throws PolicyIndexException
name - the name of the policy to updatenewDocument - the new policy as a StringPolicyStoreExceptionPolicyIndexExceptionboolean contains(String policyName) throws PolicyIndexException
policy - PolicyStoreExceptionPolicyIndexExceptionboolean clear()
throws PolicyIndexException
PolicyIndexExceptionCopyright © 2013 DuraSpace. All Rights Reserved.