Class AuthorizationDecision

java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision

public class AuthorizationDecision extends MyDataEntity
Information about the permissiveness of the event. The decision may include instructions for modification or delaying the event.Decisions are provided by the PDP and enforced by a PEP.
Author:
Fraunhofer IESE
  • Field Details

    • DECISION_ALLOW

      public static final AuthorizationDecision DECISION_ALLOW
      The default decision for a plain allow.
    • DECISION_INHIBIT

      public static final AuthorizationDecision DECISION_INHIBIT
      The default decision for a plain inhibit.
  • Constructor Details

    • AuthorizationDecision

      public AuthorizationDecision()
      Instantiates a new authorization decision. Default constructor for JPA
    • AuthorizationDecision

      public AuthorizationDecision(AuthorizationDecision prototype)
      Constructor that takes the component_id and eventAllowed from Prototype.
      Parameters:
      prototype - Prototype to create a new instance.
    • AuthorizationDecision

      public AuthorizationDecision(DecisionId id, boolean eventAllowed, List<String> authorizationActionNames, Modifier... modifiers)
      Instantiates a new authorization decision.
      Parameters:
      id - the id
      eventAllowed - the event allowed
      authorizationActionNames - the authorization action names
      modifiers - the modifiers
    • AuthorizationDecision

      public AuthorizationDecision(DecisionId id, boolean eventAllowed, @Nullable List<String> authorizationActionNames, ModifierList modifiers)
      Instantiates a new authorization decision.
      Parameters:
      id - the id
      eventAllowed - the event allowed
      authorizationActionNames - the authorization action names
      modifiers - the modifiers
  • Method Details

    • getDecisionAllow

      public static AuthorizationDecision getDecisionAllow()
      Get a clone of DECISION_ALLOW.
      Returns:
      a clone of DECISION_ALLOW.
    • getDecisionInhibit

      public static AuthorizationDecision getDecisionInhibit()
      Get a clone of DECISION_INHIBIT.
      Returns:
      DECISION_INHIBIT
    • addModifier

      public void addModifier(Modifier param)
      Adds the modifier.
      Parameters:
      param - the param
    • clearParameters

      public void clearParameters()
      Clear modifiers.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object