Class CpeSuppressionAnalyzer
java.lang.Object
org.owasp.dependencycheck.analyzer.AbstractAnalyzer
org.owasp.dependencycheck.analyzer.AbstractSuppressionAnalyzer
org.owasp.dependencycheck.analyzer.CpeSuppressionAnalyzer
- All Implemented Interfaces:
Analyzer
This is no longer used as a standalone analyzer; rather this is called by the CPE Analyzer directly. TODO - refactor this class so that is not an 'analyzer'.
The suppression analyzer processes an externally defined XML document that complies with the suppressions.xsd schema. Any identified CPE entries within the dependencies that match will be removed.
- Author:
- Jeremy Long
-
Field Summary
Fields inherited from class AbstractSuppressionAnalyzer
SUPPRESSION_OBJECT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanalyzeDependency(Dependency dependency, Engine engine) Analyzes a given dependency.booleanfilter(SuppressionRule rule) 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.Methods inherited from class AbstractSuppressionAnalyzer
getRuleCount, getSupportedExtensions, prepareAnalyzerMethods inherited from class AbstractAnalyzer
analyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessing
-
Constructor Details
-
CpeSuppressionAnalyzer
public CpeSuppressionAnalyzer()
-
-
Method Details
-
getName
-
getAnalysisPhase
Returns the phase that the analyzer is intended to run in.- Returns:
- the phase that the analyzer is intended to run in.
-
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
-
filter
-
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.- Overrides:
analyzeDependencyin classAbstractSuppressionAnalyzer- Parameters:
dependency- the dependency to analyzeengine- the engine scanning- Throws:
AnalysisException- thrown if there is an analysis exception
-