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 Integer s 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 URI s 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, invalidateCache
protected String identifier
protected boolean attributeDesignatorSupported
protected boolean attributeSelectorSupported
public void setOptions(List<Option> options)
AbstractLocator
setOptions
in interface AbstractLocator
public <T> T get(String key)
ContextMapOp
get
in interface ContextMapOp
T
- object from the mapkey
- Keypublic <T> void set(String key, T obj)
ContextMapOp
set
in interface ContextMapOp
key
- Key for the mapobj
- Object to be placedpublic String getIdentifier()
AttributeFinderModule
getIdentifier
in class AttributeFinderModule
public Set getSupportedDesignatorTypes()
AttributeFinderModule
Set
of Integer
s 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 AttributeFinderModule
Set
of Integer
s, or nullpublic Set getSupportedIds()
AttributeFinderModule
Set
of URI
s 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 AttributeFinderModule
Set
of URI
s, or nullpublic boolean isDesignatorSupported()
AttributeFinderModule
isDesignatorSupported
in class AttributeFinderModule
public boolean isSelectorSupported()
AttributeFinderModule
isSelectorSupported
in class AttributeFinderModule
protected 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 © 2023 JBoss by Red Hat. All rights reserved.