public abstract class PolicyCombiningAlgorithm extends CombiningAlgorithm
Result
that doesn't match the effect being returned. So, if
INDETERMINATE or NOT_APPLICABLE is the returned effect, no obligations
may be included in the result. If the effect of the combining algorithm
is PERMIT or DENY, then obligations with a matching fulfillOn effect
are also included in the result.logger
Constructor and Description |
---|
PolicyCombiningAlgorithm(URI identifier)
Constructor that takes the algorithm's identifier.
|
Modifier and Type | Method and Description |
---|---|
abstract Result |
combine(EvaluationCtx context,
List parameters,
List policyElements)
Combines the policies based on the context to produce some unified
result.
|
getIdentifier
public PolicyCombiningAlgorithm(URI identifier)
identifier
- the algorithm's identifierpublic abstract Result combine(EvaluationCtx context, List parameters, List policyElements)
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 CombiningAlgorithm
context
- the representation of the requestparameters
- a (possibly empty) non-null List
of
CombinerParameters
policyElements
- a List
of
CombinerElements
Copyright © 2023 JBoss by Red Hat. All rights reserved.