| 
SunTM's XACML Implementation for JavaTM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xacml.finder.AttributeFinderModule
This is the abstract class that all AttributeFinder modules
 extend. All methods have default values to represent that the given
 feature isn't supported by this module, so module writers needs only
 implement the methods for the features they're supporting.
| Constructor Summary | |
AttributeFinderModule()
 | 
|
| Method Summary | |
 EvaluationResult | 
findAttribute(String contextPath,
              Node namespaceNode,
              URI attributeType,
              EvaluationCtx context,
              String xpathVersion)
Tries to find attribute values based on the given selector data.  | 
 EvaluationResult | 
findAttribute(URI attributeType,
              URI attributeId,
              URI issuer,
              URI subjectCategory,
              EvaluationCtx context,
              int designatorType)
Tries to find attribute values based on the given designator data.  | 
 String | 
getIdentifier()
Returns this module's identifier.  | 
 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. | 
 void | 
invalidateCache()
This is an experimental method that asks the module to invalidate any cache values it may contain.  | 
 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.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public AttributeFinderModule()
| Method Detail | 
public String getIdentifier()
public boolean isDesignatorSupported()
public boolean isSelectorSupported()
public Set getSupportedDesignatorTypes()
Set 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.
Set of Integers, or nullpublic Set getSupportedIds()
Set 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.
Set of URIs, or nullpublic void invalidateCache()
This method has been introduced to see what people think of this functionality, and how they would like to use it. It may be removed in future versions, or it may be changed to a more general message-passing system (if other useful messages are identified).
public EvaluationResult findAttribute(URI attributeType,
                                      URI attributeId,
                                      URI issuer,
                                      URI subjectCategory,
                                      EvaluationCtx context,
                                      int designatorType)
BagAttribute, even if only one value was found. If no
 values were found, but no other error occurred, an empty bag is
 returned. This method may need to invoke the context data to look
 for other attribute values, so a module writer must take care not
 to create a scenario that loops forever.
attributeType - the datatype of the attributes to findattributeId - the identifier of the attributes to findissuer - the issuer of the attributes, or null if unspecifiedsubjectCategory - the category of the attribute if the
                        designatorType is SUBJECT_TARGET, otherwise nullcontext - the representation of the request datadesignatorType - the type of designator as named by the *_TARGET
                       fields in AttributeDesignator
public EvaluationResult findAttribute(String contextPath,
                                      Node namespaceNode,
                                      URI attributeType,
                                      EvaluationCtx context,
                                      String xpathVersion)
BagAttribute, even if only one value was found. If no
 values were found, but no other error occurred, an empty bag is
 returned. This method may need to invoke the context data to look
 for other attribute values, so a module writer must take care not
 to create a scenario that loops forever.
contextPath - the XPath expression to search againstnamespaceNode - the DOM node defining namespace mappings to use,
                      or null if mappings come from the context rootattributeType - the datatype of the attributes to findcontext - the representation of the request dataxpathVersion - the XPath version to use
  | 
Sun's XACML Implementation Version 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.