public final class NvdCveParser extends Object
| Constructor and Description |
|---|
NvdCveParser(Settings settings,
CveDB db)
Creates a new NVD CVE JSON Parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(File file)
Parses the NVD JSON file and inserts/updates data into the database.
|
protected boolean |
testCveCpeStartWithFilter(DefCveItem cve)
Tests the CVE's CPE entries against the starts with filter.
|
public void parse(File file) throws UpdateException
file - the NVD JSON file to parseUpdateException - thrown if the file could not be readprotected boolean testCveCpeStartWithFilter(DefCveItem cve)
cve - the CVE entry to examinetrue if the CVE affects CPEs identified by the
configured CPE Starts with filterCopyright © 2012–2020 OWASP. All rights reserved.