java.lang.Object
org.palladiosimulator.pcm.confidentiality.reverseengineering.staticcodeanalysis.CvssConverter

public final class CvssConverter extends Object
Utility class to convert from the NVD API CVSS objects to the attackSpecification CVSS objects.
See Also:
  • org.palladiosimulator.pcm.confidentiality.reverseengineering.staticcodeanalysis.nvd_api
  • org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AttackVector
    Converts an NVD AttackVectorType to an AttackVector.
    static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.Privileges
    Converts an NVD PrivilegesRequiredType to a Privileges object.
    static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AvailabilityImpact
    Converts an NVD CiaType to an AvailabilityImpact.
    static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.ConfidentialityImpact
    Converts an NVD CiaType to a ConfidentialityImpact.
    static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.IntegrityImpact
    Converts an NVD CiaType to an IntegrityImpact.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toConfImpact

      public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.ConfidentialityImpact toConfImpact(CvssV3X.CiaType ciaType)
      Converts an NVD CiaType to a ConfidentialityImpact.
      Parameters:
      ciaType - the CiaType to convert
      Returns:
      the converted ConfidentialityImpact
    • toIntegImpact

      public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.IntegrityImpact toIntegImpact(CvssV3X.CiaType ciaType)
      Converts an NVD CiaType to an IntegrityImpact.
      Parameters:
      ciaType - the CiaType to convert
      Returns:
      the converted IntegrityImpact
    • toAvailImpact

      public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AvailabilityImpact toAvailImpact(CvssV3X.CiaType ciaType)
      Converts an NVD CiaType to an AvailabilityImpact.
      Parameters:
      ciaType - the CiaType to convert
      Returns:
      the converted AvailabilityImpact
    • convert

      public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AttackVector convert(CvssV3X.AttackVectorType attackVector)
      Converts an NVD AttackVectorType to an AttackVector.
      Parameters:
      attackVector - the AttackVectorType to convert
      Returns:
      the converted AttackVector
    • convert

      public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.Privileges convert(CvssV3X.PrivilegesRequiredType privilegesRequired)
      Converts an NVD PrivilegesRequiredType to a Privileges object.
      Parameters:
      privilegesRequired - the PrivilegesRequiredType to convert
      Returns:
      the converted Privileges object.