Class CvssConverter
java.lang.Object
org.palladiosimulator.pcm.confidentiality.reverseengineering.staticcodeanalysis.CvssConverter
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 TypeMethodDescriptionstatic org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AttackVector
convert
(CvssV3X.AttackVectorType attackVector) Converts an NVDAttackVectorType
to anAttackVector
.static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.Privileges
convert
(CvssV3X.PrivilegesRequiredType privilegesRequired) Converts an NVDPrivilegesRequiredType
to aPrivileges
object.static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AvailabilityImpact
toAvailImpact
(CvssV3X.CiaType ciaType) Converts an NVDCiaType
to anAvailabilityImpact
.static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.ConfidentialityImpact
toConfImpact
(CvssV3X.CiaType ciaType) Converts an NVDCiaType
to aConfidentialityImpact
.static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.IntegrityImpact
toIntegImpact
(CvssV3X.CiaType ciaType) Converts an NVDCiaType
to anIntegrityImpact
.
-
Method Details
-
toConfImpact
public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.ConfidentialityImpact toConfImpact(CvssV3X.CiaType ciaType) Converts an NVDCiaType
to aConfidentialityImpact
.- Parameters:
ciaType
- theCiaType
to convert- Returns:
- the converted
ConfidentialityImpact
-
toIntegImpact
public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.IntegrityImpact toIntegImpact(CvssV3X.CiaType ciaType) Converts an NVDCiaType
to anIntegrityImpact
.- Parameters:
ciaType
- theCiaType
to convert- Returns:
- the converted
IntegrityImpact
-
toAvailImpact
public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AvailabilityImpact toAvailImpact(CvssV3X.CiaType ciaType) Converts an NVDCiaType
to anAvailabilityImpact
.- Parameters:
ciaType
- theCiaType
to convert- Returns:
- the converted
AvailabilityImpact
-
convert
public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.AttackVector convert(CvssV3X.AttackVectorType attackVector) Converts an NVDAttackVectorType
to anAttackVector
.- Parameters:
attackVector
- theAttackVectorType
to convert- Returns:
- the converted
AttackVector
-
convert
public static org.palladiosimulator.pcm.confidentiality.attackerSpecification.attackSpecification.Privileges convert(CvssV3X.PrivilegesRequiredType privilegesRequired) Converts an NVDPrivilegesRequiredType
to aPrivileges
object.- Parameters:
privilegesRequired
- thePrivilegesRequiredType
to convert- Returns:
- the converted
Privileges
object.
-