|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.combine.CombiningAlgorithm
org.wso2.balana.combine.PolicyCombiningAlgorithm
org.wso2.balana.combine.xacml3.PermitUnlessDenyPolicyAlg
public class PermitUnlessDenyPolicyAlg
This is the standard Deny unless permit policy combining algorithm. This algorithm is intended for those cases where a deny decision should have priority over a permit decision, and an "Indeterminate" or "NotApplicable" must never be the result. It is particularly useful at the top level in a policy structure to ensure that a PDP will always return a definite "Permit" or "Deny" result.
Field Summary | |
---|---|
static String |
algId
The standard URI used to identify this algorithm |
Constructor Summary | |
---|---|
PermitUnlessDenyPolicyAlg()
Standard constructor. |
|
PermitUnlessDenyPolicyAlg(URI identifier)
Constructor that takes the algorithm's identifier. |
Method Summary | |
---|---|
AbstractResult |
combine(EvaluationCtx context,
List parameters,
List policyElements)
Combines the policies based on the context to produce some unified result. |
Methods inherited from class org.wso2.balana.combine.CombiningAlgorithm |
---|
getIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String algId
Constructor Detail |
---|
public PermitUnlessDenyPolicyAlg()
public PermitUnlessDenyPolicyAlg(URI identifier)
identifier
- the algorithm's identifierMethod Detail |
---|
public AbstractResult combine(EvaluationCtx context, List parameters, List policyElements)
PolicyCombiningAlgorithm
Note that unlike in the RuleCombiningAlgorithms, here you must explicitly match the sub-policies to make sure that you should consider them, and you must handle Obligations.
combine
in class PolicyCombiningAlgorithm
context
- the representation of the requestparameters
- a (possibly empty) non-null List
of
CombinerParameterspolicyElements
- a List
of CombinerElements
- Returns:
- a single unified result based on the combining logic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |