Class RetireJSDataSource

java.lang.Object
org.owasp.dependencycheck.data.update.LocalDataSource
org.owasp.dependencycheck.data.update.RetireJSDataSource
All Implemented Interfaces:
CachedWebDataSource

@ThreadSafe public class RetireJSDataSource extends LocalDataSource
Downloads a local copy of the RetireJS repository.
Author:
Jeremy Long
  • Constructor Details

    • RetireJSDataSource

      public RetireJSDataSource()
      Constructs a new engine version check utility.
  • Method Details

    • update

      public boolean update(Engine engine) throws UpdateException
      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

      public @NonNull File validatedRepoFile() throws UpdateException
      Throws:
      UpdateException
    • purge

      public boolean purge(Engine engine)
      Description copied from interface: CachedWebDataSource
      Deletes any locally cached data.
      Parameters:
      engine - a reference to the dependency-check engine
      Returns:
      true if the purge was successful; otherwise false