|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.xacml.sunxacml.finder.AttributeFinderModule
org.jboss.security.xacml.locators.AttributeLocator
public class AttributeLocator
An attribute finder module Usage: Remember, when a policy defines an attribute and the request does not contain it, then the PDP will ask the AttributeLocator for a value. The following methods need to be overridden in your attribute locators
AttributeFinderModule.findAttribute(String, org.w3c.dom.Node, URI, org.jboss.security.xacml.sunxacml.EvaluationCtx, String)
,
AttributeFinderModule.findAttribute(URI, URI, URI, URI, org.jboss.security.xacml.sunxacml.EvaluationCtx, int)
Field Summary |
---|
Fields inherited from interface org.jboss.security.xacml.interfaces.AbstractLocator |
---|
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 Summary | |
---|---|
AttributeLocator()
|
Method Summary | ||
---|---|---|
|
get(String key)
Get an element from the map |
|
String |
getIdentifier()
Returns this module's identifier. |
|
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. |
|
|
set(String key,
T obj)
Set an object on the map |
|
void |
setOptions(List<Option> options)
Set a list of options on the locator |
Methods inherited from class org.jboss.security.xacml.sunxacml.finder.AttributeFinderModule |
---|
findAttribute, findAttribute, invalidateCache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeLocator()
Method Detail |
---|
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
- Key
public <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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |