Class OssIndexAnalyzer
java.lang.Object
org.owasp.dependencycheck.analyzer.AbstractAnalyzer
org.owasp.dependencycheck.analyzer.OssIndexAnalyzer
- All Implemented Interfaces:
Analyzer
Enrich dependency information from Sonatype OSS index.
- Since:
- 5.0.0
- Author:
- Jason Dillon
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanalyzeDependency(Dependency dependency, Engine engine) Analyzes a given dependency.protected voidCloses a given Analyzer.Returns the phase that the analyzer is intended to run in.protected StringReturns the setting key to determine if the analyzer is enabled.getName()Returns the name of the analyzer.protected voidprepareAnalyzer(Engine engine) Prepares a given Analyzer.booleanRun without parallel support.Methods inherited from class AbstractAnalyzer
analyze, close, getSettings, initialize, isEnabled, prepare, setEnabled
-
Field Details
-
REFERENCE_TYPE
-
-
Constructor Details
-
OssIndexAnalyzer
public OssIndexAnalyzer()
-
-
Method Details
-
getName
-
getAnalysisPhase
Description copied from interface:AnalyzerReturns the phase that the analyzer is intended to run in.- Returns:
- the phase that the analyzer is intended to run in.
-
getAnalyzerEnabledSettingKey
Description copied from class:AbstractAnalyzerReturns the setting key to determine if the analyzer is enabled.
- Specified by:
getAnalyzerEnabledSettingKeyin classAbstractAnalyzer- Returns:
- the key for the analyzer's enabled property
-
supportsParallelProcessing
public boolean supportsParallelProcessing()Run without parallel support.- Specified by:
supportsParallelProcessingin interfaceAnalyzer- Overrides:
supportsParallelProcessingin classAbstractAnalyzer- Returns:
- false
-
closeAnalyzer
Description copied from class:AbstractAnalyzerCloses a given Analyzer. This will be skipped if the analyzer is disabled.- Overrides:
closeAnalyzerin classAbstractAnalyzer- Throws:
Exception- thrown if there is an exception
-
prepareAnalyzer
Description copied from class:AbstractAnalyzerPrepares a given Analyzer. This will be skipped if the analyzer is disabled.- Overrides:
prepareAnalyzerin classAbstractAnalyzer- Parameters:
engine- a reference to the dependency-check engine- Throws:
InitializationException- thrown if there is an exception
-
analyzeDependency
Description copied from class:AbstractAnalyzerAnalyzes a given dependency. If the dependency is an archive, such as a WAR or EAR, the contents are extracted, scanned, and added to the list of dependencies within the engine.- Specified by:
analyzeDependencyin classAbstractAnalyzer- Parameters:
dependency- the dependency to analyzeengine- the engine scanning- Throws:
AnalysisException- thrown if there is an analysis exception
-