Class 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 Detail

      • 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 Detail

      • 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 Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object