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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addModificationMethod(ModifierMethod modifierMethod)
de.fraunhofer.iese.mydata.policy.parameter.ParameterList
enforce(de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision authorizationDecision, de.fraunhofer.iese.mydata.policy.parameter.ParameterList parameterList)
To enforce @AuthorizationDecision
to @ParameterList
boolean
removeModificationMethod(String modificationMethodDisplayName)
To removed already added @ModifierMethod
-
-
-
Method Detail
-
addModificationMethod
boolean addModificationMethod(ModifierMethod modifierMethod)
- Parameters:
modifierMethod
- Adds an actor.- Returns:
- true if adding was possible.
-
enforce
de.fraunhofer.iese.mydata.policy.parameter.ParameterList enforce(de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision authorizationDecision, de.fraunhofer.iese.mydata.policy.parameter.ParameterList parameterList) throws de.fraunhofer.iese.mydata.policy.exception.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:
de.fraunhofer.iese.mydata.policy.exception.InhibitException
- If the modification cannot be performed.
-
removeModificationMethod
boolean removeModificationMethod(String modificationMethodDisplayName)
To removed already added @ModifierMethod
- Parameters:
modificationMethodDisplayName
- Name fo the actor to remove.- Returns:
- true if removing was possible.
-
-