Class CveItemOperator
java.lang.Object
org.owasp.dependencycheck.data.nvdcve.CveItemOperator
Utility for processing DefCveItem in order to extract key values
like textual description and ecosystem type.
- Author:
- skjolber
-
Constructor Summary
ConstructorsConstructorDescriptionCveItemOperator(String cpeStartsWithFilter) Constructs a new CVE Item Operator utility. -
Method Summary
Modifier and TypeMethodDescriptionextractDescription(io.github.jeremylong.openvulnerability.client.nvd.DefCveItem cve) Extracts the english description from the CVE object.extractEcosystem(String baseEcosystem, VulnerableSoftware parsedCpe) Attempts to determine the ecosystem based on the vendor, product and targetSw.booleanisRejected(String description) Determines if the CVE entry is rejected.
-
Constructor Details
-
CveItemOperator
Constructs a new CVE Item Operator utility.- Parameters:
cpeStartsWithFilter- the filter to use for CPE entries
-
-
Method Details
-
extractDescription
Extracts the english description from the CVE object.- Parameters:
cve- the CVE data- Returns:
- the English descriptions from the CVE object
-
extractEcosystem
Attempts to determine the ecosystem based on the vendor, product and targetSw.- Parameters:
baseEcosystem- the base ecosystemparsedCpe- the CPE identifier- Returns:
- the ecosystem if one is identified
-
isRejected
Determines if the CVE entry is rejected.- Parameters:
description- the CVE description- Returns:
trueif the CVE was rejected; otherwisefalse
-