From 96818686f40c42ad850e0a8de6179d289fd91ee6 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 8 Oct 2023 07:04:34 -0400 Subject: [PATCH] feat: NVD API data feed --- core/pom.xml | 6 +- .../data/nvd/json/MetaProperties.java | 1 + .../data/nvdcve/DatabaseProperties.java | 61 +- .../data/update/NvdApiDataSource.java | 296 ++++- .../data/update/NvdCveUpdater.java | 1015 +++++++++-------- .../data/update/nvd/DownloadTask.java | 144 +-- .../data/update/nvd/NvdCveInfo.java | 8 +- .../data/update/nvd/ProcessTask.java | 31 +- .../data/update/nvd/api/NvdApiProcessor.java | 17 +- .../owasp/dependencycheck/utils/DateUtil.java | 18 + .../main/resources/dependencycheck.properties | 7 + .../data/nvdcve/DatabasePropertiesIT.java | 16 - .../data/update/NvdCveUpdaterIT.java | 43 - .../data/update/nvd/DownloadTaskTest.java | 46 - .../data/update/nvd/NvdCveInfoTest.java | 63 - pom.xml | 5 + .../owasp/dependencycheck/utils/Settings.java | 70 +- 17 files changed, 975 insertions(+), 872 deletions(-) delete mode 100644 core/src/test/java/org/owasp/dependencycheck/data/update/NvdCveUpdaterIT.java delete mode 100644 core/src/test/java/org/owasp/dependencycheck/data/update/nvd/DownloadTaskTest.java delete mode 100644 core/src/test/java/org/owasp/dependencycheck/data/update/nvd/NvdCveInfoTest.java diff --git a/core/pom.xml b/core/pom.xml index 3df2083e0f9..58f783a3bed 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -105,7 +105,7 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. jsonschema2pojo-maven-plugin -