Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml.finder
Class AttributeFinder  view AttributeFinder download AttributeFinder.java

java.lang.Object
  extended bycom.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 AttributeSelectors. 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

Field Summary
private  java.util.List allModules
           
private  java.util.List designatorModules
           
private static java.util.logging.Logger logger
           
private  java.util.List selectorModules
           
 
Constructor Summary
AttributeFinder()
          Default constructor.
 
Method Summary
 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.
 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.
 java.util.List getModules()
          Returns the ordered List of modules used by this class to find attribute values.
 void setModules(java.util.List modules)
          Sets the ordered List of modules used by this class to find attribute values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AttributeFinder

public AttributeFinder()
Default constructor.

Method Detail

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.