Class JsonPathDecisionEnforcer
java.lang.Object
de.fraunhofer.iese.mydata.pep.enforce.JsonPathDecisionEnforcer
- All Implemented Interfaces:
DecisionEnforcer
Decision Enforcer that uses
JsonPath
to provide expressions to-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addModificationMethod
(ModifierMethod method) enforce
(AuthorizationDecision authorizationDecision, ParameterList parameterList) To enforce @AuthorizationDecision
to @ParameterList
boolean
To removed already added @ModifierMethod
-
Constructor Details
-
JsonPathDecisionEnforcer
public JsonPathDecisionEnforcer()
-
-
Method Details
-
addModificationMethod
Description copied from interface:DecisionEnforcer
- Specified by:
addModificationMethod
in interfaceDecisionEnforcer
- Parameters:
method
- Adds an actor.- Returns:
- true if adding was possible.
-
enforce
public ParameterList enforce(AuthorizationDecision authorizationDecision, ParameterList parameterList) throws InhibitException Description copied from interface:DecisionEnforcer
To enforce @AuthorizationDecision
to @ParameterList
- Specified by:
enforce
in interfaceDecisionEnforcer
- 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
Description copied from interface:DecisionEnforcer
To removed already added @ModifierMethod
- Specified by:
removeModificationMethod
in interfaceDecisionEnforcer
- Parameters:
name
- Name fo the actor to remove.- Returns:
- true if removing was possible.
-