public class CveItemOperator
extends java.lang.Object
Constructor and Description |
---|
CveItemOperator(java.lang.String cpeStartsWithFilter)
Constructs a new CVE Item Operator utility.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
extractDescription(io.github.jeremylong.openvulnerability.client.nvd.DefCveItem cve)
Extracts the english description from the CVE object.
|
java.lang.String |
extractEcosystem(java.lang.String baseEcosystem,
VulnerableSoftware parsedCpe)
Attempts to determine the ecosystem based on the vendor, product and
targetSw.
|
boolean |
isRejected(java.lang.String description)
Determines if the CVE entry is rejected.
|
protected boolean |
testCveCpeStartWithFilter(io.github.jeremylong.openvulnerability.client.nvd.DefCveItem cve)
Tests the CVE's CPE entries against the starts with filter.
|
public CveItemOperator(java.lang.String cpeStartsWithFilter)
cpeStartsWithFilter
- the filter to use for CPE entriespublic java.lang.String extractDescription(io.github.jeremylong.openvulnerability.client.nvd.DefCveItem cve)
cve
- the CVE datapublic java.lang.String extractEcosystem(java.lang.String baseEcosystem, VulnerableSoftware parsedCpe)
baseEcosystem
- the base ecosystemparsedCpe
- the CPE identifierpublic boolean isRejected(java.lang.String description)
description
- the CVE descriptiontrue
if the CVE was rejected; otherwise
false
protected boolean testCveCpeStartWithFilter(io.github.jeremylong.openvulnerability.client.nvd.DefCveItem cve)
cve
- the CVE entry to examinetrue
if the CVE affects CPEs identified by the
configured CPE Starts with filterCopyright© 2012-21 Jeremy Long. All Rights Reserved.