Interface DecisionEnforcer
- All Known Implementing Classes:
JsonPathDecisionEnforcer
public interface DecisionEnforcer
It's any implementation is responsible for
enforcing @
AuthorizationDecision
to relevant parameter
of @ParameterList
using given registered @ModifierMethod
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addModificationMethod
(ModifierMethod modifierMethod) enforce
(AuthorizationDecision authorizationDecision, ParameterList parameterList) To enforce @AuthorizationDecision
to @ParameterList
boolean
removeModificationMethod
(String modificationMethodDisplayName) To removed already added @ModifierMethod
-
Method Details
-
addModificationMethod
- Parameters:
modifierMethod
- Adds an actor.- Returns:
- true if adding was possible.
-
enforce
ParameterList enforce(AuthorizationDecision authorizationDecision, ParameterList parameterList) throws InhibitException To enforce @AuthorizationDecision
to @ParameterList
- Parameters:
authorizationDecision
- decision by PDP.parameterList
- Parameter list send via PDP.- Returns:
ParameterList
of parameters to be used.- Throws:
InhibitException
- If the modification cannot be performed.
-
removeModificationMethod
To removed already added @ModifierMethod
- Parameters:
modificationMethodDisplayName
- Name fo the actor to remove.- Returns:
- true if removing was possible.
-