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