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,org.jboss.security.xacml.sunxacml.AbstractPolicy> |
getPolicies(org.jboss.security.xacml.sunxacml.EvaluationCtx eval,
org.jboss.security.xacml.sunxacml.finder.PolicyFinder policyFinder)
Extracts a list of policies from the Policy Index that are relevant to
the given Evaluation Context.
|
org.jboss.security.xacml.sunxacml.AbstractPolicy |
getPolicy(String name,
org.jboss.security.xacml.sunxacml.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,org.jboss.security.xacml.sunxacml.AbstractPolicy> getPolicies(org.jboss.security.xacml.sunxacml.EvaluationCtx eval, org.jboss.security.xacml.sunxacml.finder.PolicyFinder policyFinder) throws PolicyIndexException
eval - the Evaluation Context from which to match policies againstPolicyIndexExceptionorg.jboss.security.xacml.sunxacml.AbstractPolicy getPolicy(String name, org.jboss.security.xacml.sunxacml.finder.PolicyFinder policyFinder) throws PolicyIndexException
name - the name of the policy to returnPolicyIndexExceptionString addPolicy(String name, String document) throws PolicyIndexException
name - document - the policy as a StringPolicyIndexExceptionboolean deletePolicy(String name) throws PolicyIndexException
name - the name of the policyPolicyIndexExceptionboolean updatePolicy(String name, String newDocument) throws PolicyIndexException
name - the name of the policy to updatenewDocument - the new policy as a StringPolicyIndexExceptionboolean contains(String policyName) throws PolicyIndexException
policyName - the PolicyId valuePolicyIndexExceptionboolean clear()
throws PolicyIndexException
PolicyIndexExceptionCopyright © 2015 DuraSpace. All Rights Reserved.