|
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.PolicyFinderModule
This is the abstract class that all PolicyFinder
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 | |
PolicyFinderModule()
|
Method Summary | |
PolicyFinderResult |
findPolicy(EvaluationCtx context)
Tries to find one and only one matching policy given the request represented by the context data. |
PolicyFinderResult |
findPolicy(URI idReference,
int type)
Tries to find one and only one matching policy given the idReference If more than one policy is found, this is an error and must be reported as such. |
String |
getIdentifier()
Returns this module's identifier. |
abstract void |
init(PolicyFinder finder)
Initializes this module for use by the given finder. |
void |
invalidateCache()
This is an experimental method that asks the module to invalidate any cache values it may contain. |
boolean |
isIdReferenceSupported()
Returns true if the module supports finding policies based on an id reference (in a PolicySet). |
boolean |
isRequestSupported()
Returns true if the module supports finding policies based on a request (ie, target matching). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolicyFinderModule()
Method Detail |
public String getIdentifier()
public boolean isRequestSupported()
public boolean isIdReferenceSupported()
public abstract void init(PolicyFinder finder)
PDP
is initialized with a
PDPConfig
containing the given PolicyFinder
.
Because PolicyFinderModule
s usually need to parse
policies, and this requires knowing their PolicyFinder,
parsing is usually done at or after this point in the lifetime
of this module. This might also be a good time to reset any internal
caches or temporary data. Note that this method may be called more
than once in the lifetime of a module.
- Parameters:
finder
- the PolicyFinder
using this module
public 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 PolicyFinderResult findPolicy(EvaluationCtx context)
context
- the representation of the request
public PolicyFinderResult findPolicy(URI idReference, int type)
idReference
- an identifier specifying some policytype
- type of reference (policy or policySet) as identified by
the fields in PolicyReference
|
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.