|
|||||||||
Home >> All >> com >> sun >> xacml >> [ finder overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
com.sun.xacml.finder
Class PolicyFinderResult

java.lang.Objectcom.sun.xacml.finder.PolicyFinderResult
- public class PolicyFinderResult
- extends java.lang.Object
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.
- Since:
- 1.0
Field Summary | |
private com.sun.xacml.AbstractPolicy |
policy
|
private com.sun.xacml.ctx.Status |
status
|
Constructor Summary | |
PolicyFinderResult()
Creates a result saying that no applicable policies were found. |
|
PolicyFinderResult(com.sun.xacml.AbstractPolicy policy)
Creates a result containing a single applicable policy. |
|
PolicyFinderResult(com.sun.xacml.ctx.Status status)
Create a result of Indeterminate, including Status data. |
Method Summary | |
com.sun.xacml.AbstractPolicy |
getPolicy()
Returns the found policy, or null if there was an error or no policy was found. |
com.sun.xacml.ctx.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 |
Field Detail |
policy
private com.sun.xacml.AbstractPolicy policy
status
private com.sun.xacml.ctx.Status status
Constructor Detail |
PolicyFinderResult
public PolicyFinderResult()
- Creates a result saying that no applicable policies were found.
PolicyFinderResult
public PolicyFinderResult(com.sun.xacml.AbstractPolicy policy)
- Creates a result containing a single applicable policy.
PolicyFinderResult
public PolicyFinderResult(com.sun.xacml.ctx.Status status)
- Create a result of Indeterminate, including Status data.
Method Detail |
notApplicable
public boolean notApplicable()
- Returns true if the result was NotApplicable.
indeterminate
public boolean indeterminate()
- Returns true if the result was Indeterminate.
getPolicy
public com.sun.xacml.AbstractPolicy getPolicy()
- Returns the found policy, or null if there was an error or no policy
was found.
getStatus
public com.sun.xacml.ctx.Status getStatus()
- Returns the status if there was an error, or null if no error occurred.
|
|||||||||
Home >> All >> com >> sun >> xacml >> [ finder overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |