Class OpenSSLAnalyzer
- java.lang.Object
-
- org.owasp.dependencycheck.analyzer.AbstractAnalyzer
-
- org.owasp.dependencycheck.analyzer.AbstractFileTypeAnalyzer
-
- org.owasp.dependencycheck.analyzer.OpenSSLAnalyzer
-
- All Implemented Interfaces:
java.io.FileFilter
,Analyzer
,FileTypeAnalyzer
@ThreadSafe public class OpenSSLAnalyzer extends AbstractFileTypeAnalyzer
Used to analyze OpenSSL source code present in the file system.- Author:
- Dale Visser
-
-
Constructor Summary
Constructors Constructor Description OpenSSLAnalyzer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
analyzeDependency(Dependency dependency, Engine engine)
Analyzes python packages and adds evidence to the dependency.AnalysisPhase
getAnalysisPhase()
Tell that we are used for information collection.protected java.lang.String
getAnalyzerEnabledSettingKey()
Returns the setting for the analyzer enabled setting key.protected java.io.FileFilter
getFileFilter()
Returns the set of supported file extensions.java.lang.String
getName()
Returns the name of the Python Package Analyzer.protected static java.lang.String
getOpenSSLVersion(long openSSLVersionConstant)
Returns the open SSL version as a string.protected void
prepareFileTypeAnalyzer(Engine engine)
No-op initializer implementation.-
Methods inherited from class org.owasp.dependencycheck.analyzer.AbstractFileTypeAnalyzer
accept, getFilesMatched, newHashSet, prepareAnalyzer, setFilesMatched
-
Methods inherited from class org.owasp.dependencycheck.analyzer.AbstractAnalyzer
analyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessing
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.owasp.dependencycheck.analyzer.Analyzer
analyze, close, initialize, isEnabled, prepare, supportsParallelProcessing
-
-
-
-
Method Detail
-
getOpenSSLVersion
protected static java.lang.String getOpenSSLVersion(long openSSLVersionConstant)
Returns the open SSL version as a string.- Parameters:
openSSLVersionConstant
- The open SSL version- Returns:
- the version of openssl
-
getName
public java.lang.String getName()
Returns the name of the Python Package Analyzer.- Returns:
- the name of the analyzer
-
getAnalysisPhase
public AnalysisPhase getAnalysisPhase()
Tell that we are used for information collection.- Returns:
- INFORMATION_COLLECTION
-
getFileFilter
protected java.io.FileFilter getFileFilter()
Returns the set of supported file extensions.- Specified by:
getFileFilter
in classAbstractFileTypeAnalyzer
- Returns:
- the set of supported file extensions
-
getAnalyzerEnabledSettingKey
protected java.lang.String getAnalyzerEnabledSettingKey()
Returns the setting for the analyzer enabled setting key.- Specified by:
getAnalyzerEnabledSettingKey
in classAbstractAnalyzer
- Returns:
- the setting for the analyzer enabled setting key
-
prepareFileTypeAnalyzer
protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
No-op initializer implementation.- Specified by:
prepareFileTypeAnalyzer
in classAbstractFileTypeAnalyzer
- Parameters:
engine
- a reference to the dependency-check engine- Throws:
InitializationException
- never thrown
-
analyzeDependency
protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
Analyzes python packages and adds evidence to the dependency.- Specified by:
analyzeDependency
in classAbstractAnalyzer
- Parameters:
dependency
- the dependency being analyzedengine
- the engine being used to perform the scan- Throws:
AnalysisException
- thrown if there is an unrecoverable error analyzing the dependency
-
-