Class VersionFilterAnalyzer
- java.lang.Object
-
- org.owasp.dependencycheck.analyzer.AbstractAnalyzer
-
- org.owasp.dependencycheck.analyzer.VersionFilterAnalyzer
-
- All Implemented Interfaces:
Analyzer
@ThreadSafe public class VersionFilterAnalyzer extends AbstractAnalyzer
This analyzer attempts to filter out erroneous version numbers collected. Initially, this will focus on JAR files that contain a POM version number that matches the file name - if identified all other version information will be removed.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description VersionFilterAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidanalyzeDependency(Dependency dependency, Engine engine)The HintAnalyzer uses knowledge about a dependency to add additional information to help in identification of identifiers or vulnerabilities.AnalysisPhasegetAnalysisPhase()Returns the phase that the analyzer is intended to run in.protected java.lang.StringgetAnalyzerEnabledSettingKey()Returns the setting key to determine if the analyzer is enabled.java.lang.StringgetName()Returns the name of the analyzer.-
Methods inherited from class org.owasp.dependencycheck.analyzer.AbstractAnalyzer
analyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, prepareAnalyzer, setEnabled, supportsParallelProcessing
-
-
-
-
Method Detail
-
getName
public java.lang.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 java.lang.String getAnalyzerEnabledSettingKey()
Returns the setting key to determine if the analyzer is enabled.- Specified by:
getAnalyzerEnabledSettingKeyin classAbstractAnalyzer- Returns:
- the key for the analyzer's enabled property
-
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:
analyzeDependencyin classAbstractAnalyzer- Parameters:
dependency- The dependency being analyzedengine- The scanning engine- Throws:
AnalysisException- is thrown if there is an exception analyzing the dependency.
-
-