public abstract class PolicyIndexBase extends java.lang.Object implements PolicyIndex
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ACTION_KEY |
protected static java.lang.String |
ENVIRONMENT_KEY |
boolean |
indexed |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
indexMap |
protected PolicyReader |
m_policyReader |
protected static java.lang.String |
METADATA_POLICY_NS |
static java.util.Map<java.lang.String,java.lang.String> |
namespaces |
protected static java.lang.String |
RESOURCE_KEY |
protected static java.net.URI |
SUBJECT_CATEGORY_DEFAULT |
protected static java.lang.String |
SUBJECT_KEY |
XACML_RESOURCE_ID, XACML20_POLICY_NS| Modifier | Constructor and Description |
|---|---|
protected |
PolicyIndexBase(PolicyReader policyReader) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.Collection<AttributeBean>> |
getAttributeMap(org.jboss.security.xacml.sunxacml.EvaluationCtx eval)
This method extracts the attributes listed in the indexMap from the given
evaluation context.
|
protected org.jboss.security.xacml.sunxacml.AbstractPolicy |
handleDocument(org.w3c.dom.Document doc,
org.jboss.security.xacml.sunxacml.finder.PolicyFinder policyFinder)
A private method that handles reading the policy and creates the correct
kind of AbstractPolicy.
|
protected static java.lang.String[] |
makeComponents(java.lang.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(java.util.Map<java.lang.String,java.lang.String> attributeMap) |
protected void |
setAttributeMap(java.lang.String mapKey,
java.util.Map<java.lang.String,java.lang.String> attributeMap) |
void |
setEnvironmentAttributes(java.util.Map<java.lang.String,java.lang.String> attributeMap) |
void |
setResourceAttributes(java.util.Map<java.lang.String,java.lang.String> attributeMap) |
void |
setSubjectAttributes(java.util.Map<java.lang.String,java.lang.String> attributeMap) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPolicy, clear, contains, deletePolicy, getPolicies, getPolicy, updatePolicyprotected static final java.lang.String SUBJECT_KEY
protected static final java.lang.String RESOURCE_KEY
protected static final java.lang.String ACTION_KEY
protected static final java.lang.String ENVIRONMENT_KEY
protected static final java.net.URI SUBJECT_CATEGORY_DEFAULT
public boolean indexed
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> indexMap
protected PolicyReader m_policyReader
protected static final java.lang.String METADATA_POLICY_NS
public static final java.util.Map<java.lang.String,java.lang.String> namespaces
protected PolicyIndexBase(PolicyReader policyReader) throws PolicyIndexException
PolicyIndexExceptionpublic void setSubjectAttributes(java.util.Map<java.lang.String,java.lang.String> attributeMap)
public void setResourceAttributes(java.util.Map<java.lang.String,java.lang.String> attributeMap)
public void setActionAttributes(java.util.Map<java.lang.String,java.lang.String> attributeMap)
public void setEnvironmentAttributes(java.util.Map<java.lang.String,java.lang.String> attributeMap)
protected void setAttributeMap(java.lang.String mapKey,
java.util.Map<java.lang.String,java.lang.String> attributeMap)
protected java.util.Map<java.lang.String,java.util.Collection<AttributeBean>> getAttributeMap(org.jboss.security.xacml.sunxacml.EvaluationCtx eval) throws java.net.URISyntaxException
eval - the Evaluation Context from which to extract Attributesjava.net.URISyntaxExceptionprotected org.jboss.security.xacml.sunxacml.AbstractPolicy handleDocument(org.w3c.dom.Document doc,
org.jboss.security.xacml.sunxacml.finder.PolicyFinder policyFinder)
throws org.jboss.security.xacml.sunxacml.ParsingException
org.jboss.security.xacml.sunxacml.ParsingExceptionprotected static java.lang.String[] makeComponents(java.lang.String resourceId)
resourceId - XACML hierarchical resource-id valueCopyright © 2014 DuraSpace. All Rights Reserved.