Class ThreatMetadata

java.lang.Object
be.kuleuven.cs.distrinet.sparta.io.ThreatMetadata

public final class ThreatMetadata extends Object
Export formatting of a threat's context, used as extra export columns, see ThreatExportColumns.withMetadata(). The facts themselves come from core: the structure from DfdStructure, and the mitigating solutions from Threat.getMitigations(), i.e. exactly the countermeasures the risk calculation applied.
  • Method Details

    • trustBoundaryPath

      public static String trustBoundaryPath(EObject element)
      The enclosing trust boundaries' names, outermost first, joined with " > ".
    • solutionNames

      public static Set<String> solutionNames(Threat threat)
      The distinct solutions whose countermeasures the risk calculation applied to the threat. Each solution is reported by the name of its solution type, falling back to the solution's own name when no type is set.
    • solutions

      public static String solutions(Threat threat)