Class AuthorizationDecision
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision
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 Summary
Modifier and TypeFieldDescriptionstatic final AuthorizationDecision
The default decision for a plain allow.static final AuthorizationDecision
The default decision for a plain inhibit. -
Constructor Summary
ConstructorDescriptionInstantiates a new authorization decision.AuthorizationDecision
(AuthorizationDecision prototype) Constructor that takes the component_id and eventAllowed from Prototype.AuthorizationDecision
(DecisionId id, boolean eventAllowed, List<String> authorizationActionNames, Modifier... modifiers) Instantiates a new authorization decision.AuthorizationDecision
(DecisionId id, boolean eventAllowed, List<String> authorizationActionNames, ModifierList modifiers) Instantiates a new authorization decision. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addModifier
(Modifier param) Adds the modifier.void
Clear modifiers.boolean
static AuthorizationDecision
Get a clone of DECISION_ALLOW.static AuthorizationDecision
Get a clone of DECISION_INHIBIT.int
hashCode()
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
Field Details
-
DECISION_ALLOW
The default decision for a plain allow. -
DECISION_INHIBIT
The default decision for a plain inhibit.
-
-
Constructor Details
-
AuthorizationDecision
public AuthorizationDecision()Instantiates a new authorization decision. Default constructor for JPA -
AuthorizationDecision
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 ideventAllowed
- the event allowedauthorizationActionNames
- the authorization action namesmodifiers
- the modifiers
-
AuthorizationDecision
public AuthorizationDecision(DecisionId id, boolean eventAllowed, @Nullable List<String> authorizationActionNames, ModifierList modifiers) Instantiates a new authorization decision.- Parameters:
id
- the ideventAllowed
- the event allowedauthorizationActionNames
- the authorization action namesmodifiers
- the modifiers
-
-
Method Details
-
getDecisionAllow
Get a clone of DECISION_ALLOW.- Returns:
- a clone of DECISION_ALLOW.
-
getDecisionInhibit
Get a clone of DECISION_INHIBIT.- Returns:
- DECISION_INHIBIT
-
addModifier
Adds the modifier.- Parameters:
param
- the param
-
clearParameters
public void clearParameters()Clear modifiers. -
equals
-
hashCode
public int hashCode()
-