Class JsonPathDecisionEnforcer
- java.lang.Object
-
- de.fraunhofer.iese.mydata.pep.enforce.JsonPathDecisionEnforcer
-
- All Implemented Interfaces:
DecisionEnforcer
public class JsonPathDecisionEnforcer extends Object implements DecisionEnforcer
Decision Enforcer that usesJsonPath
to provide expressions to
-
-
Constructor Summary
Constructors Constructor Description JsonPathDecisionEnforcer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addModificationMethod(ModifierMethod method)
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 name)
To removed already added @ModifierMethod
-
-
-
Method Detail
-
addModificationMethod
public boolean addModificationMethod(ModifierMethod method)
Description copied from interface:DecisionEnforcer
- Specified by:
addModificationMethod
in interfaceDecisionEnforcer
- Parameters:
method
- Adds an actor.- Returns:
- true if adding was possible.
-
enforce
public 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
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:
de.fraunhofer.iese.mydata.policy.exception.InhibitException
- If the modification cannot be performed.
-
removeModificationMethod
public boolean removeModificationMethod(String name)
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.
-
-