public class ElixirMixAuditAnalyzer extends AbstractFileTypeAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static String |
ADVISORY
Advisory.
|
static String |
CRITICALITY
Criticality.
|
static String |
DEPENDENCY_ECOSYSTEM
A descriptor for the type of dependencies processed or added by this
analyzer.
|
static String |
NAME
Name.
|
static String |
VERSION
Version.
|
| Constructor and Description |
|---|
ElixirMixAuditAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyzeDependency(Dependency dependency,
Engine engine)
Determines if the analyzer can analyze the given file type.
|
AnalysisPhase |
getAnalysisPhase()
Returns the phase that the analyzer is intended to run in.
|
protected String |
getAnalyzerEnabledSettingKey()
Returns the key used in the properties file to reference the analyzer's
enabled property.
|
protected FileFilter |
getFileFilter()
Returns the
FileFilter used to determine which files are
to be analyzed. |
String |
getName()
Returns the name of the analyzer.
|
protected void |
prepareFileTypeAnalyzer(Engine engine)
Prepares the file type analyzer for dependency analysis.
|
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 NAME
public static final String VERSION
public static final String ADVISORY
public static final String CRITICALITY
protected FileFilter getFileFilter()
AbstractFileTypeAnalyzer
Returns the FileFilter used to determine which files are
to be analyzed. An example would be an analyzer that inspected Java jar
files. Implementors may use
FileFilterBuilder.
If the analyzer returns null it will not cause additional files to be analyzed, but will be executed against every file loaded.
getFileFilter in class AbstractFileTypeAnalyzerprotected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
AbstractFileTypeAnalyzerprepareFileTypeAnalyzer in class AbstractFileTypeAnalyzerengine - a reference to the dependency-check engineInitializationException - thrown if there is an exception during
initializationprotected String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey in class AbstractAnalyzerpublic String getName()
public AnalysisPhase getAnalysisPhase()
protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency in class AbstractAnalyzerdependency - the dependency to determine if it can analyzeengine - the dependency-check engineAnalysisException - thrown if there is an analysis exception.Copyright © 2012–2020 OWASP. All rights reserved.