Class Threat
java.lang.Object
be.kuleuven.cs.distrinet.sparta.core.model.Threat
- All Implemented Interfaces:
IInteractionThreat,IThreat
- Direct Known Subclasses:
ObservableThreat,PatternThreat
Class representing a security or privacy threat instance. This class requires a
IPatternMatch from which the required information is retrieved to
populate the threat's properties.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final NumberFormatprotected DataFlowprotected Stringprotected Stringprotected final NumberFormatprotected final org.eclipse.viatra.query.runtime.api.IPatternMatchprotected static final NumberFormatprotected final IRiskModelprotected DFDElementprotected ThreatType -
Constructor Summary
ConstructorsModifierConstructorDescriptionThreat(org.eclipse.viatra.query.runtime.api.IPatternMatch x) Create a new Threat instance.protectedThreat(org.eclipse.viatra.query.runtime.api.IPatternMatch match, IRiskModel model) -
Method Summary
Modifier and TypeMethodDescriptionprotected DataFlowprotected StringgetElementName(String propertyName) getLef()protected ModelElementgetModelElement(String propertyName) org.eclipse.viatra.query.runtime.api.IPatternMatchgetRisk()getSle()getTef()protected ThreatTypevoidPerform Risk calculation Overall formula: LEF x LMtoString()
-
Field Details
-
riskModel
-
patternMatch
protected final org.eclipse.viatra.query.runtime.api.IPatternMatch patternMatch -
threatenedElement
-
threatType
-
matchType
-
dataFlow
-
message
-
CF
-
RF
-
nf
-
-
Constructor Details
-
Threat
-
Threat
public Threat(org.eclipse.viatra.query.runtime.api.IPatternMatch x) Create a new Threat instance.- Parameters:
x- theIPatternMatchfrom which the required information is retrieved to populate the threat's properties.
-
-
Method Details
-
getPatternMatch
public org.eclipse.viatra.query.runtime.api.IPatternMatch getPatternMatch() -
getThreatenedElement
-
getThreatType
-
getMatchType
-
getDataFlow
-
getDataFlowFrom
-
getDataFlowTo
-
getMessage
-
getVulnerability
- Specified by:
getVulnerabilityin interfaceIThreat
-
getVulnerability_lower
-
getVulnerability_upper
-
getRisk
-
getRisk_lower
-
getRisk_upper
-
getPotentialRisk
- Specified by:
getPotentialRiskin interfaceIThreat
-
getSle
-
getTef
-
getLef
-
getElementName
-
getModelElement
-
getDataFlowElement
-
getThreatTypeElement
-
performRiskCalculation
public void performRiskCalculation()Perform Risk calculation Overall formula: LEF x LM -
toString
-
getDataFlowName
- Specified by:
getDataFlowNamein interfaceIInteractionThreat
-
getDataFlowFromName
- Specified by:
getDataFlowFromNamein interfaceIInteractionThreat
-
getDataFlowToName
- Specified by:
getDataFlowToNamein interfaceIInteractionThreat
-
getThreatTypeName
- Specified by:
getThreatTypeNamein interfaceIThreat
-
getThreatenedElementName
- Specified by:
getThreatenedElementNamein interfaceIThreat
-
getThreatenedElementTypeName
- Specified by:
getThreatenedElementTypeNamein interfaceIThreat
-
getThreatenedElementId
- Specified by:
getThreatenedElementIdin interfaceIThreat
-
getThreatName
- Specified by:
getThreatNamein interfaceIThreat
-
getDescription
- Specified by:
getDescriptionin interfaceIThreat
-