Class RetireJSDataSource
java.lang.Object
org.owasp.dependencycheck.data.update.LocalDataSource
org.owasp.dependencycheck.data.update.RetireJSDataSource
- All Implemented Interfaces:
CachedWebDataSource
Downloads a local copy of the RetireJS repository.
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LocalDataSource
getLastUpdated, isStale, saveLastUpdated
-
Constructor Details
-
RetireJSDataSource
public RetireJSDataSource()Constructs a new engine version check utility.
-
-
Method Details
-
update
Downloads the current RetireJS data source.- Parameters:
engine- a reference to the ODC Engine- Returns:
- returns false as no updates are made to the database
- Throws:
UpdateException- thrown if the update failed
-
validatedRepoFile
- Throws:
UpdateException
-
purge
Description copied from interface:CachedWebDataSourceDeletes any locally cached data.- Parameters:
engine- a reference to the dependency-check engine- Returns:
trueif the purge was successful; otherwisefalse
-