|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.finder.PolicyFinderResult
This is used as the return value for the findPolicy() methods in the
PolicyFinder
. It communicates either a found policy that
applied to the request (eg, the target matches), an Indeterminate state,
or no applicable policies.
The OnlyOneApplicable combining logic is used in looking for a policy, so the result from calling findPolicy can never be more than one policy.
Constructor Summary | |
PolicyFinderResult()
Creates a result saying that no applicable policies were found. |
|
PolicyFinderResult(AbstractPolicy policy)
Creates a result containing a single applicable policy. |
|
PolicyFinderResult(Status status)
Create a result of Indeterminate, including Status data. |
Method Summary | |
AbstractPolicy |
getPolicy()
Returns the found policy, or null if there was an error or no policy was found. |
Status |
getStatus()
Returns the status if there was an error, or null if no error occurred. |
boolean |
indeterminate()
Returns true if the result was Indeterminate. |
boolean |
notApplicable()
Returns true if the result was NotApplicable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolicyFinderResult()
public PolicyFinderResult(AbstractPolicy policy)
policy
- the applicable policypublic PolicyFinderResult(Status status)
status
- the error informationMethod Detail |
public boolean notApplicable()
public boolean indeterminate()
public AbstractPolicy getPolicy()
public Status getStatus()
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.