java.lang.Object
org.palladiosimulator.retriever.vulnerability.core.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.retriever.vulnerability.core.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(CvssV31Data.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(CvssV31Data.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(CvssV31Data.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(CvssV31Data.AttackVectorType attackVectorType)
      Converts an NVD AttackVectorType to an AttackVector.
      Parameters:
      attackVectorType - the AttackVectorType to convert
      Returns:
      the converted AttackVector
    • convert

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