Class CpeSuppressionAnalyzer
- java.lang.Object
- 
- org.owasp.dependencycheck.analyzer.AbstractAnalyzer
- 
- org.owasp.dependencycheck.analyzer.AbstractSuppressionAnalyzer
- 
- org.owasp.dependencycheck.analyzer.CpeSuppressionAnalyzer
 
 
 
- 
- All Implemented Interfaces:
- Analyzer
 
 @ThreadSafe public class CpeSuppressionAnalyzer extends AbstractSuppressionAnalyzer 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 org.owasp.dependencycheck.analyzer.AbstractSuppressionAnalyzerSUPPRESSION_OBJECT_KEY
 
- 
 - 
Constructor SummaryConstructors Constructor Description CpeSuppressionAnalyzer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidanalyzeDependency(Dependency dependency, Engine engine)Analyzes a given dependency.booleanfilter(SuppressionRule rule)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.AbstractSuppressionAnalyzergetRuleCount, getSupportedExtensions, prepareAnalyzer
 - 
Methods inherited from class org.owasp.dependencycheck.analyzer.AbstractAnalyzeranalyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessing
 
- 
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Returns the name of the analyzer.- Returns:
- the name of the analyzer.
 
 - 
getAnalysisPhasepublic AnalysisPhase getAnalysisPhase() Returns the phase that the analyzer is intended to run in.- Returns:
- the phase that the analyzer is intended to run in.
 
 - 
getAnalyzerEnabledSettingKeyprotected java.lang.String getAnalyzerEnabledSettingKey() Returns the setting key to determine if the analyzer is enabled. - Specified by:
- getAnalyzerEnabledSettingKeyin class- AbstractAnalyzer
- Returns:
- the key for the analyzer's enabled property
 
 - 
filterpublic boolean filter(SuppressionRule rule) 
 - 
analyzeDependencyprotected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException 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 class- AbstractSuppressionAnalyzer
- Parameters:
- dependency- the dependency to analyze
- engine- the engine scanning
- Throws:
- AnalysisException- thrown if there is an analysis exception
 
 
- 
 
-