Class HostedSuppressionsDataSource
java.lang.Object
org.owasp.dependencycheck.data.update.LocalDataSource
org.owasp.dependencycheck.data.update.HostedSuppressionsDataSource
- All Implemented Interfaces:
CachedWebDataSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default URL to the Hosted Suppressions file. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LocalDataSource
getLastUpdated, saveLastUpdated
-
Field Details
-
DEFAULT_SUPPRESSIONS_URL
The default URL to the Hosted Suppressions file.- See Also:
-
-
Constructor Details
-
HostedSuppressionsDataSource
public HostedSuppressionsDataSource()
-
-
Method Details
-
update
Downloads the current Hosted suppressions file.- Parameters:
engine- a reference to the ODC Engine- Returns:
- returns false as no updates are made to the database, just web resources cached locally
- Throws:
UpdateException- thrown if the update encountered fatal errors
-
shouldUpdate
Determines if the we should update the Hosted Suppressions file.- Parameters:
repo- the Hosted Suppressions file.- Returns:
trueif an update to the Hosted Suppressions file should be performed; otherwisefalse- Throws:
NumberFormatException- thrown if an invalid value is contained in the database properties
-
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
-