Class HintAnalyzer

java.lang.Object
org.owasp.dependencycheck.analyzer.AbstractAnalyzer
org.owasp.dependencycheck.analyzer.HintAnalyzer
All Implemented Interfaces:
Analyzer

@ThreadSafe public class HintAnalyzer extends AbstractAnalyzer
This analyzer adds evidence to dependencies to enhance the accuracy of library identification.
Author:
Jeremy Long
  • Constructor Details

    • HintAnalyzer

      public HintAnalyzer()
  • Method Details

    • getName

      public String getName()
      Returns the name of the analyzer.
      Returns:
      the name of the analyzer.
    • getAnalysisPhase

      public AnalysisPhase getAnalysisPhase()
      Returns the phase that the analyzer is intended to run in.
      Returns:
      the phase that the analyzer is intended to run in.
    • getAnalyzerEnabledSettingKey

      protected String getAnalyzerEnabledSettingKey()

      Returns the setting key to determine if the analyzer is enabled.

      Specified by:
      getAnalyzerEnabledSettingKey in class AbstractAnalyzer
      Returns:
      the key for the analyzer's enabled property
    • prepareAnalyzer

      public void prepareAnalyzer(Engine engine) throws InitializationException
      The prepare method does nothing for this Analyzer.
      Overrides:
      prepareAnalyzer in class AbstractAnalyzer
      Parameters:
      engine - a reference the dependency-check engine
      Throws:
      InitializationException - thrown if there is an exception
    • analyzeDependency

      protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
      The HintAnalyzer uses knowledge about a dependency to add additional information to help in identification of identifiers or vulnerabilities.
      Specified by:
      analyzeDependency in class AbstractAnalyzer
      Parameters:
      dependency - The dependency being analyzed
      engine - The scanning engine
      Throws:
      AnalysisException - is thrown if there is an exception analyzing the dependency.