java.lang.Object
com.sun.xacml.finder.AttributeFinder
- public class AttributeFinder
- extends java.lang.Object
This class is used by the PDP to find attribute values that weren't
originally supplied in the request. It can be called with the data supplied
in AttributeDesignators or AttributeSelector
s.
Because the modules in this finder may themselves need attribute data
to search for attribute data, it's possible that the modules will look
for values in the EvaluationCtx
, which may in turn result
in the invocation of this finder again, so module writers need to be
careful about how they build their modules.
Note that unlike the PolicyFinder, this class doesn't always need to
use every module it has to find a value. The ordering is maintained,
however, so it will always start with the first module, and proceed
in order until it finds a value or runs out of modules.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allModules
private java.util.List allModules
designatorModules
private java.util.List designatorModules
selectorModules
private java.util.List selectorModules
logger
private static final java.util.logging.Logger logger
AttributeFinder
public AttributeFinder()
- Default constructor.
getModules
public java.util.List getModules()
- Returns the ordered
List
of modules used by this class
to find attribute values.
setModules
public void setModules(java.util.List modules)
- Sets the ordered
List
of modules used by this class
to find attribute values. The ordering will be maintained.
findAttribute
public com.sun.xacml.cond.EvaluationResult findAttribute(java.net.URI attributeType,
java.net.URI attributeId,
java.net.URI issuer,
java.net.URI subjectCategory,
com.sun.xacml.EvaluationCtx context,
int designatorType)
- Tries to find attribute values based on the given designator data.
The result, if successful, will always contain a
BagAttribute
, even if only one value was found. If no
values were found, but no other error occurred, an empty bag is
returned.
findAttribute
public com.sun.xacml.cond.EvaluationResult findAttribute(java.lang.String contextPath,
org.w3c.dom.Node namespaceNode,
java.net.URI attributeType,
com.sun.xacml.EvaluationCtx context,
java.lang.String xpathVersion)
- Tries to find attribute values based on the given selector data.
The result, if successful, must always contain a
BagAttribute
, even if only one value was found. If no
values were found, but no other error occurred, an empty bag is
returned.