public class PermitUnlessDenyPolicyAlg extends PolicyCombiningAlgorithm
Modifier and Type | Field and Description |
---|---|
static String |
algId
The standard URI used to identify this algorithm
|
Constructor and Description |
---|
PermitUnlessDenyPolicyAlg()
Standard constructor.
|
PermitUnlessDenyPolicyAlg(URI identifier)
Constructor that takes the algorithm's identifier.
|
Modifier and Type | Method and Description |
---|---|
AbstractResult |
combine(EvaluationCtx context,
List parameters,
List policyElements)
Combines the policies based on the context to produce some unified result.
|
getIdentifier
public static final String algId
public PermitUnlessDenyPolicyAlg()
public PermitUnlessDenyPolicyAlg(URI identifier)
identifier
- the algorithm's identifierpublic 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
CombinerParameters
policyElements
- a List
of CombinerElements
Copyright © 2019 WSO2. All rights reserved.