public class AttributeLocator extends AttributeFinderModule implements AbstractLocator
AttributeFinderModule.findAttribute(URI, URI, URI, URI, org.jboss.security.xacml.sunxacml.EvaluationCtx, int)| Modifier and Type | Field and Description |
|---|---|
protected boolean |
attributeDesignatorSupported |
protected boolean |
attributeSelectorSupported |
protected Set<Integer> |
designatorTypes |
protected String |
identifier |
protected Set<URI> |
ids |
protected Map<String,Object> |
map |
protected List<Option> |
options |
ATTRIBUTE_DESIGNATOR_INTEGER_TAG, ATTRIBUTE_DESIGNATOR_SUPPORT_TAG, ATTRIBUTE_SELECTOR_SUPPORT_TAG, ATTRIBUTE_SUPPORTED_ID_TAG, IDENTIFIER_TAG, RESOURCE_CHILD_SUPPORTED_TAG, RESOURCE_DESCENDANT_SUPPORTED_TAG| Constructor and Description |
|---|
AttributeLocator() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String key)
Get an element from the map
|
protected Object |
getAttributeValue(EvaluationResult evalResult,
URI attributeType)
Given a
EvaluationResult, return the attribute value contained |
String |
getIdentifier()
Returns this module's identifier.
|
protected String |
getOptionValue(String optionTag)
Given an option tag, get the option value
|
Set |
getSupportedDesignatorTypes()
Returns a
Set of Integers that represent
which AttributeDesignator types are supported (eg, Subject, Resource,
etc.), or null meaning that no particular types are supported. |
Set |
getSupportedIds()
Returns a
Set of URIs that represent the
attributeIds handled by this module, or null if this module doesn't
handle any specific attributeIds. |
boolean |
isDesignatorSupported()
Returns true if this module supports retrieving attributes based on the
data provided in an AttributeDesignatorType.
|
boolean |
isSelectorSupported()
Returns true if this module supports retrieving attributes based on the
data provided in an AttributeSelectorType.
|
<T> void |
set(String key,
T obj)
Set an object on the map
|
void |
setOptions(List<Option> options)
Set a list of options on the locator
|
protected void |
usePassedOption(String optionTag,
String optionValue)
An opportunity for sub-classes to process the passed option tag and value
|
findAttribute, findAttribute, invalidateCacheprotected String identifier
protected boolean attributeDesignatorSupported
protected boolean attributeSelectorSupported
public void setOptions(List<Option> options)
AbstractLocatorsetOptions in interface AbstractLocatorpublic <T> T get(String key)
ContextMapOpget in interface ContextMapOpT - object from the mapkey - Keypublic <T> void set(String key, T obj)
ContextMapOpset in interface ContextMapOpkey - Key for the mapobj - Object to be placedpublic String getIdentifier()
AttributeFinderModulegetIdentifier in class AttributeFinderModulepublic Set getSupportedDesignatorTypes()
AttributeFinderModuleSet of Integers that represent
which AttributeDesignator types are supported (eg, Subject, Resource,
etc.), or null meaning that no particular types are supported. A
return value of null can mean that this module doesn't support
designator retrieval, or that it supports designators of all types.
If the set is non-null, it should contain the values specified in
the AttributeDesignator *_TARGET fields.getSupportedDesignatorTypes in class AttributeFinderModuleSet of Integers, or nullpublic Set getSupportedIds()
AttributeFinderModuleSet of URIs that represent the
attributeIds handled by this module, or null if this module doesn't
handle any specific attributeIds. A return value of null means that
this module will try to resolve attributes of any id.getSupportedIds in class AttributeFinderModuleSet of URIs, or nullpublic boolean isDesignatorSupported()
AttributeFinderModuleisDesignatorSupported in class AttributeFinderModulepublic boolean isSelectorSupported()
AttributeFinderModuleisSelectorSupported in class AttributeFinderModuleprotected void usePassedOption(String optionTag, String optionValue)
An opportunity for sub-classes to process the passed option tag and value
NOTE: Subclasses should override this method and allow super class processing before their own processing in the method via the super.usePassedOption() call.
optionTag - optionValue - protected String getOptionValue(String optionTag)
optionTag - protected Object getAttributeValue(EvaluationResult evalResult, URI attributeType)
EvaluationResult, return the attribute value containedevalResult - attributeType - Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.