public interface PolicyIndex
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XACML_RESOURCE_ID |
static java.lang.String |
XACML20_POLICY_NS |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addPolicy(java.lang.String name,
java.lang.String document)
Generates a policy based on the string data provided and the name.
|
boolean |
clear()
Clear the policy index completely
|
boolean |
contains(java.lang.String policyName)
Check if the policy identified by policyName exists.
|
boolean |
deletePolicy(java.lang.String name)
Removes the policy given by name from the data store.
|
java.util.Map<java.lang.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(java.lang.String name,
org.jboss.security.xacml.sunxacml.finder.PolicyFinder policyFinder)
Obtains the policy with the provided name from the Policy Store.
|
boolean |
updatePolicy(java.lang.String name,
java.lang.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 java.lang.String XACML20_POLICY_NS
static final java.lang.String XACML_RESOURCE_ID
java.util.Map<java.lang.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(java.lang.String name,
org.jboss.security.xacml.sunxacml.finder.PolicyFinder policyFinder)
throws PolicyIndexException
name - the name of the policy to returnPolicyStoreExceptionPolicyIndexExceptionjava.lang.String addPolicy(java.lang.String name,
java.lang.String document)
throws PolicyIndexException
name - document - the policy as a String{@link - PolicyStoreException}PolicyIndexExceptionboolean deletePolicy(java.lang.String name)
throws PolicyIndexException
name - the name of the policyPolicyStoreExceptionPolicyIndexExceptionboolean updatePolicy(java.lang.String name,
java.lang.String newDocument)
throws PolicyIndexException
name - the name of the policy to updatenewDocument - the new policy as a StringPolicyStoreExceptionPolicyIndexExceptionboolean contains(java.lang.String policyName)
throws PolicyIndexException
policy - PolicyStoreExceptionPolicyIndexExceptionboolean clear()
throws PolicyIndexException
PolicyIndexExceptionCopyright © 2014 DuraSpace. All Rights Reserved.