public class DenyUnlessPermitPolicyAlg extends PolicyCombiningAlgorithm
Modifier and Type | Field and Description |
---|---|
static String |
algId
The standard URN used to identify this algorithm
|
Constructor and Description |
---|
DenyUnlessPermitPolicyAlg()
Standard constructor.
|
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 DenyUnlessPermitPolicyAlg()
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
CombinerParameters
policyElements
- a List
of CombinerElements
Copyright © 2021 WSO2. All rights reserved.