@ThreadSafe public class NugetconfAnalyzer extends AbstractFileTypeAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPENDENCY_ECOSYSTEM
A descriptor for the type of dependencies processed or added by this
analyzer.
|
static String |
FILE_NAME
The file filter used to determine which files this analyzer supports.
|
| Constructor and Description |
|---|
NugetconfAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
void |
analyzeDependency(Dependency dependency,
Engine engine)
Performs the analysis.
|
AnalysisPhase |
getAnalysisPhase()
Returns the analysis phase under which the analyzer runs.
|
protected String |
getAnalyzerEnabledSettingKey()
Returns the key used in the properties file to reference the analyzer's
enabled property.
|
protected FileFilter |
getFileFilter()
Returns the FileFilter
|
String |
getName()
Returns the analyzer's name.
|
void |
prepareFileTypeAnalyzer(Engine engine)
Initializes the analyzer once before any analysis is performed.
|
accept, getFilesMatched, newHashSet, prepareAnalyzer, setFilesMatchedanalyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanalyze, close, initialize, isEnabled, prepare, supportsParallelProcessingpublic static final String DEPENDENCY_ECOSYSTEM
public static final String FILE_NAME
public void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
prepareFileTypeAnalyzer in class AbstractFileTypeAnalyzerengine - a reference to the dependency-check engineInitializationException - if there's an error during initializationpublic String getName()
protected String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey in class AbstractAnalyzerpublic AnalysisPhase getAnalysisPhase()
protected FileFilter getFileFilter()
getFileFilter in class AbstractFileTypeAnalyzerpublic void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency in class AbstractAnalyzerdependency - the dependency to analyzeengine - the engineAnalysisException - when there's an exception during analysisCopyright © 2012–2020 OWASP. All rights reserved.