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 Detail

      • addModificationMethod

        boolean addModificationMethod​(ModifierMethod modifierMethod)
        To add @ModifierMethod against registered @ModifierEngine i.e @DeleteModifierMethod
        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.