public abstract class PolicyIndexBase extends Object implements PolicyIndex
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION_KEY |
protected static String |
ENVIRONMENT_KEY |
boolean |
indexed |
protected Map<String,Map<String,String>> |
indexMap |
protected PolicyReader |
m_policyReader |
protected static String |
METADATA_POLICY_NS |
static Map<String,String> |
namespaces |
protected static String |
RESOURCE_KEY |
protected static String |
SUBJECT_KEY |
XACML_RESOURCE_ID, XACML20_POLICY_NS| Modifier | Constructor and Description |
|---|---|
protected |
PolicyIndexBase(PolicyReader policyReader) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Set<AttributeBean>> |
getAttributeMap(com.sun.xacml.EvaluationCtx eval)
This method extracts the attributes listed in the indexMap from the given
evaluation context.
|
protected com.sun.xacml.AbstractPolicy |
handleDocument(Document doc,
com.sun.xacml.finder.PolicyFinder policyFinder)
A private method that handles reading the policy and creates the correct
kind of AbstractPolicy.
|
protected static String[] |
makeComponents(String resourceId)
Splits a XACML hierarchical resource-id value into a set of resource-id values
that can be matched against a policy.
|
void |
setActionAttributes(Map<String,String> attributeMap) |
protected void |
setAttributeMap(String mapKey,
Map<String,String> attributeMap) |
void |
setEnvironmentAttributes(Map<String,String> attributeMap) |
void |
setResourceAttributes(Map<String,String> attributeMap) |
void |
setSubjectAttributes(Map<String,String> attributeMap) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPolicy, clear, contains, deletePolicy, getPolicies, getPolicy, updatePolicyprotected static final String SUBJECT_KEY
protected static final String RESOURCE_KEY
protected static final String ACTION_KEY
protected static final String ENVIRONMENT_KEY
public boolean indexed
protected PolicyReader m_policyReader
protected static final String METADATA_POLICY_NS
protected PolicyIndexBase(PolicyReader policyReader) throws PolicyIndexException
PolicyIndexExceptionprotected Map<String,Set<AttributeBean>> getAttributeMap(com.sun.xacml.EvaluationCtx eval) throws URISyntaxException
eval - the Evaluation Context from which to extract AttributesURISyntaxExceptionprotected com.sun.xacml.AbstractPolicy handleDocument(Document doc, com.sun.xacml.finder.PolicyFinder policyFinder) throws com.sun.xacml.ParsingException
com.sun.xacml.ParsingExceptionprotected static String[] makeComponents(String resourceId)
resourceId - XACML hierarchical resource-id valueCopyright © 2013 DuraSpace. All Rights Reserved.