java.lang.Object
be.kuleuven.cs.distrinet.sparta.core.model.Threat
All Implemented Interfaces:
IInteractionThreat, IThreat
Direct Known Subclasses:
ObservableThreat, PatternThreat

public class Threat extends Object implements IThreat, IInteractionThreat
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 Details

    • riskModel

      protected final IRiskModel riskModel
    • patternMatch

      protected final org.eclipse.viatra.query.runtime.api.IPatternMatch patternMatch
    • threatenedElement

      protected DFDElement threatenedElement
    • threatType

      protected ThreatType threatType
    • matchType

      protected String matchType
    • dataFlow

      protected DataFlow dataFlow
    • message

      protected String message
    • nf

      protected final NumberFormat nf
  • Constructor Details

    • Threat

      protected Threat(org.eclipse.viatra.query.runtime.api.IPatternMatch match, IRiskModel model)
    • Threat

      public Threat(org.eclipse.viatra.query.runtime.api.IPatternMatch x)
      Create a new Threat instance.
      Parameters:
      x - the IPatternMatch from which the required information is retrieved to populate the threat's properties.
  • Method Details