Class VulnerabilitySuppressionAnalyzer
java.lang.Object
org.owasp.dependencycheck.analyzer.AbstractAnalyzer
org.owasp.dependencycheck.analyzer.AbstractSuppressionAnalyzer
org.owasp.dependencycheck.analyzer.VulnerabilitySuppressionAnalyzer
- All Implemented Interfaces:
Analyzer
The suppression analyzer processes an externally defined XML document that
complies with the suppressions.xsd schema. Any identified Vulnerability
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
-
VulnerabilitySuppressionAnalyzer
public VulnerabilitySuppressionAnalyzer()
-
-
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
-