@NotThreadSafe public class Check extends Update
| Modifier and Type | Class and Description |
|---|---|
static class |
Check.ReportFormats
An enumeration of supported report formats: "ALL", "HTML", "XML", "CSV",
"JSON", "VULN", etc..
|
| Constructor and Description |
|---|
Check()
Construct a new DependencyCheckTask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.tools.ant.types.ResourceCollection rc)
Add an arbitrary ResourceCollection.
|
void |
addConfiguredRetirejsFilter(RetirejsFilter retirejsFilter)
Add a regular expression to the set of retire JS content filters.
|
void |
addConfiguredSuppressionFile(SuppressionFile suppressionFile)
Add a suppression file.
|
void |
execute()
Executes the update by initializing the settings, downloads the NVD XML
data, and then processes the data storing it in the local database.
|
String |
getApplicationName()
Deprecated.
use projectName instead.
|
String |
getArtifactoryAnalyzerApiToken()
Returns the value of artifactoryAnalyzerApiToken.
|
String |
getArtifactoryAnalyzerBearerToken()
Returns the value of artifactoryAnalyzerBearerToken.
|
Boolean |
getArtifactoryAnalyzerEnabled()
Returns the value of artifactoryAnalyzerEnabled.
|
Boolean |
getArtifactoryAnalyzerParallelAnalysis()
Returns the value of artifactoryAnalyzerParallelAnalysis.
|
String |
getArtifactoryAnalyzerUrl()
Returns the value of artifactoryAnalyzerUrl.
|
Boolean |
getArtifactoryAnalyzerUseProxy()
Returns the value of artifactoryAnalyzerUseProxy.
|
String |
getArtifactoryAnalyzerUsername()
Returns the value of artifactoryAnalyzerUsername.
|
String |
getBundleAuditPath()
Returns the path to the bundle audit executable.
|
Boolean |
getCmakeAnalyzerEnabled()
Returns the value of cmakeAnalyzerEnabled.
|
float |
getFailBuildOnCVSS()
Get the value of failBuildOnCVSS.
|
String |
getHintsFile()
Get the value of hintsFile.
|
String |
getNexusUrl()
Get the value of nexusUrl.
|
String |
getPathToMono()
Get the value of pathToMono.
|
String |
getProjectName()
Get the value of projectName.
|
String |
getReportFormat()
Get the value of reportFormat.
|
String |
getReportOutputDirectory()
Get the value of reportOutputDirectory.
|
List<String> |
getRetirejsFilters()
Gets retire JS Analyzers file content filters.
|
List<String> |
getSuppressionFiles()
Gets suppression file paths.
|
String |
getZipExtensions()
Get the value of zipExtensions.
|
Boolean |
isArchiveAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
Boolean |
isAssemblyAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
Boolean |
isAutoconfAnalyzerEnabled()
Get the value of autoconfAnalyzerEnabled.
|
Boolean |
isAutoUpdate()
Get the value of autoUpdate.
|
Boolean |
isBundleAuditAnalyzerEnabled()
Returns if the Bundle Audit Analyzer is enabled.
|
Boolean |
isCentralAnalyzerEnabled()
Get the value of centralAnalyzerEnabled.
|
Boolean |
isCMakeAnalyzerEnabled()
Get the value of cmakeAnalyzerEnabled.
|
boolean |
isCocoapodsAnalyzerEnabled()
Returns if the cocoapods analyzer is enabled.
|
Boolean |
isComposerAnalyzerEnabled()
Get the value of composerAnalyzerEnabled.
|
Boolean |
isEnableExperimental()
Get the value of enableExperimental.
|
Boolean |
isEnableRetired()
Get the value of enableRetired.
|
Boolean |
isJarAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
Boolean |
isNexusAnalyzerEnabled()
Get the value of nexusAnalyzerEnabled.
|
Boolean |
isNexusUsesProxy()
Get the value of nexusUsesProxy.
|
Boolean |
isNodeAnalyzerEnabled()
Get the value of nodeAnalyzerEnabled.
|
Boolean |
isNspAnalyzerEnabled()
Get the value of nspAnalyzerEnabled.
|
Boolean |
isNuspecAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
Boolean |
isOpensslAnalyzerEnabled()
Get the value of opensslAnalyzerEnabled.
|
Boolean |
isPyDistributionAnalyzerEnabled()
Get the value of pyDistributionAnalyzerEnabled.
|
Boolean |
isPyPackageAnalyzerEnabled()
Get the value of pyPackageAnalyzerEnabled.
|
boolean |
isReference()
Learn whether the refId attribute of this element been set.
|
Boolean |
isRetireJsAnalyzerEnabled()
Get the value of retireJsAnalyzerEnabled.
|
Boolean |
isRetirejsFilterNonVulnerable()
Get the value of retirejsFilterNonVulnerable.
|
Boolean |
isRubygemsAnalyzerEnabled()
Get the value of rubygemsAnalyzerEnabled.
|
boolean |
isShowSummary()
Get the value of showSummary.
|
Boolean |
isSwiftPackageManagerAnalyzerEnabled()
Returns whether or not the Swift package Analyzer is enabled.
|
boolean |
isUpdateOnly()
Deprecated.
Use the update task instead
|
protected void |
populateSettings()
Takes the properties supplied and updates the dependency-check settings.
|
void |
setApplicationName(String applicationName)
Deprecated.
use projectName instead.
|
void |
setArchiveAnalyzerEnabled(Boolean archiveAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setArtifactoryAnalyzerApiToken(String artifactoryAnalyzerApiToken)
Set the value of artifactoryAnalyzerApiToken.
|
void |
setArtifactoryAnalyzerBearerToken(String artifactoryAnalyzerBearerToken)
Set the value of artifactoryAnalyzerBearerToken.
|
void |
setArtifactoryAnalyzerEnabled(Boolean artifactoryAnalyzerEnabled)
Set the value of artifactoryAnalyzerEnabled.
|
void |
setArtifactoryAnalyzerParallelAnalysis(Boolean artifactoryAnalyzerParallelAnalysis)
Set the value of artifactoryAnalyzerParallelAnalysis.
|
void |
setArtifactoryAnalyzerUrl(String artifactoryAnalyzerUrl)
Set the value of artifactoryAnalyzerUrl.
|
void |
setArtifactoryAnalyzerUseProxy(Boolean artifactoryAnalyzerUseProxy)
Set the value of artifactoryAnalyzerUseProxy.
|
void |
setArtifactoryAnalyzerUsername(String artifactoryAnalyzerUsername)
Set the value of artifactoryAnalyzerUsername.
|
void |
setAssemblyAnalyzerEnabled(Boolean assemblyAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setAutoconfAnalyzerEnabled(Boolean autoconfAnalyzerEnabled)
Set the value of autoconfAnalyzerEnabled.
|
void |
setAutoUpdate(Boolean autoUpdate)
Set the value of autoUpdate.
|
void |
setBundleAuditAnalyzerEnabled(Boolean bundleAuditAnalyzerEnabled)
Sets if the Bundle Audit Analyzer is enabled.
|
void |
setBundleAuditPath(String bundleAuditPath)
Sets the path to the bundle audit executable.
|
void |
setCentralAnalyzerEnabled(Boolean centralAnalyzerEnabled)
Set the value of centralAnalyzerEnabled.
|
void |
setCmakeAnalyzerEnabled(Boolean cmakeAnalyzerEnabled)
Set the value of cmakeAnalyzerEnabled.
|
void |
setCMakeAnalyzerEnabled(Boolean cmakeAnalyzerEnabled)
Set the value of cmakeAnalyzerEnabled.
|
void |
setCocoapodsAnalyzerEnabled(Boolean cocoapodsAnalyzerEnabled)
Sets whether or not the cocoapods analyzer is enabled.
|
void |
setComposerAnalyzerEnabled(Boolean composerAnalyzerEnabled)
Set the value of composerAnalyzerEnabled.
|
void |
setEnableExperimental(Boolean enableExperimental)
Set the value of enableExperimental.
|
void |
setEnableRetired(Boolean enableRetired)
Set the value of enableRetired.
|
void |
setFailBuildOnCVSS(float failBuildOnCVSS)
Set the value of failBuildOnCVSS.
|
void |
setHintsFile(String hintsFile)
Set the value of hintsFile.
|
void |
setJarAnalyzerEnabled(Boolean jarAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setNexusAnalyzerEnabled(Boolean nexusAnalyzerEnabled)
Set the value of nexusAnalyzerEnabled.
|
void |
setNexusUrl(String nexusUrl)
Set the value of nexusUrl.
|
void |
setNexusUsesProxy(Boolean nexusUsesProxy)
Set the value of nexusUsesProxy.
|
void |
setNodeAnalyzerEnabled(Boolean nodeAnalyzerEnabled)
Set the value of nodeAnalyzerEnabled.
|
void |
setNspAnalyzerEnabled(Boolean nspAnalyzerEnabled)
Set the value of nspAnalyzerEnabled.
|
void |
setNuspecAnalyzerEnabled(Boolean nuspecAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setOpensslAnalyzerEnabled(Boolean opensslAnalyzerEnabled)
Set the value of opensslAnalyzerEnabled.
|
void |
setPathToMono(String pathToMono)
Set the value of pathToMono.
|
void |
setProjectName(String projectName)
Set the value of projectName.
|
void |
setPyDistributionAnalyzerEnabled(Boolean pyDistributionAnalyzerEnabled)
Set the value of pyDistributionAnalyzerEnabled.
|
void |
setPyPackageAnalyzerEnabled(Boolean pyPackageAnalyzerEnabled)
Set the value of pyPackageAnalyzerEnabled.
|
void |
setRefId(org.apache.tools.ant.types.Reference r)
Add a reference to a Path, FileSet, DirSet, or FileList defined
elsewhere.
|
void |
setReportFormat(Check.ReportFormats reportFormat)
Set the value of reportFormat.
|
void |
setReportOutputDirectory(String reportOutputDirectory)
Set the value of reportOutputDirectory.
|
void |
setRetireJsAnalyzerEnabled(Boolean retireJsAnalyzerEnabled)
Set the value of retireJsAnalyzerEnabled.
|
void |
setRetirejsFilterNonVulnerable(Boolean retirejsFilterNonVulnerable)
Set the value of retirejsFilterNonVulnerable.
|
void |
setRubygemsAnalyzerEnabled(Boolean rubygemsAnalyzerEnabled)
Set the value of rubygemsAnalyzerEnabled.
|
void |
setShowSummary(boolean showSummary)
Set the value of showSummary.
|
void |
setSuppressionFile(String suppressionFile)
Set the value of suppressionFile.
|
void |
setSwiftPackageManagerAnalyzerEnabled(Boolean swiftPackageManagerAnalyzerEnabled)
Sets the enabled state of the swift package manager analyzer.
|
void |
setUpdateOnly(boolean updateOnly)
Deprecated.
Use the update task instead
|
void |
setZipExtensions(String zipExtensions)
Set the value of zipExtensions.
|
getConnectionString, getConnectionTimeout, getCveUrl12Base, getCveUrl12Modified, getCveUrl20Base, getCveUrl20Modified, getCveValidForHours, getDatabaseDriverName, getDatabaseDriverPath, getDatabasePassword, getDatabaseUser, getProxyPassword, getProxyPort, getProxyServer, getProxyUsername, setConnectionString, setConnectionTimeout, setCveUrl12Base, setCveUrl12Modified, setCveUrl20Base, setCveUrl20Modified, setCveValidForHours, setDatabaseDriverName, setDatabaseDriverPath, setDatabasePassword, setDatabaseUser, setProxyPassword, setProxyPort, setProxyServer, setProxyUsernamegetDataDirectory, getSettings, isFailOnError, setDataDirectory, setFailOnErrorbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void add(org.apache.tools.ant.types.ResourceCollection rc)
rc - the ResourceCollection to add.public void addConfiguredSuppressionFile(SuppressionFile suppressionFile)
SuppressionFile.suppressionFile - the suppression file to add.public boolean isReference()
public void setRefId(org.apache.tools.ant.types.Reference r)
r - the reference to a path, fileset, dirset or filelist.@Deprecated public String getApplicationName()
@Deprecated public void setApplicationName(String applicationName)
applicationName - new value of applicationNamepublic String getProjectName()
public void setProjectName(String projectName)
projectName - new value of projectNamepublic String getReportOutputDirectory()
public void setReportOutputDirectory(String reportOutputDirectory)
reportOutputDirectory - new value of reportOutputDirectorypublic float getFailBuildOnCVSS()
public void setFailBuildOnCVSS(float failBuildOnCVSS)
failBuildOnCVSS - new value of failBuildOnCVSSpublic Boolean isAutoUpdate()
public void setAutoUpdate(Boolean autoUpdate)
autoUpdate - new value of autoUpdate@Deprecated public boolean isUpdateOnly()
@Deprecated public void setUpdateOnly(boolean updateOnly)
updateOnly - new value of updateOnlypublic String getReportFormat()
public void setReportFormat(Check.ReportFormats reportFormat)
reportFormat - new value of reportFormatpublic List<String> getSuppressionFiles()
public void setSuppressionFile(String suppressionFile)
suppressionFile - new value of suppressionFilepublic String getHintsFile()
public void setHintsFile(String hintsFile)
hintsFile - new value of hintsFilepublic boolean isShowSummary()
public void setShowSummary(boolean showSummary)
showSummary - new value of showSummarypublic Boolean isEnableExperimental()
public void setEnableExperimental(Boolean enableExperimental)
enableExperimental - new value of enableExperimentalpublic Boolean isEnableRetired()
public void setEnableRetired(Boolean enableRetired)
enableRetired - new value of enableRetiredpublic Boolean isJarAnalyzerEnabled()
public void setJarAnalyzerEnabled(Boolean jarAnalyzerEnabled)
jarAnalyzerEnabled - the value of the new settingpublic Boolean isArchiveAnalyzerEnabled()
public void setArchiveAnalyzerEnabled(Boolean archiveAnalyzerEnabled)
archiveAnalyzerEnabled - the value of the new settingpublic Boolean isAssemblyAnalyzerEnabled()
public void setAssemblyAnalyzerEnabled(Boolean assemblyAnalyzerEnabled)
assemblyAnalyzerEnabled - the value of the new settingpublic Boolean isNuspecAnalyzerEnabled()
public void setNuspecAnalyzerEnabled(Boolean nuspecAnalyzerEnabled)
nuspecAnalyzerEnabled - the value of the new settingpublic Boolean isComposerAnalyzerEnabled()
public void setComposerAnalyzerEnabled(Boolean composerAnalyzerEnabled)
composerAnalyzerEnabled - new value of composerAnalyzerEnabledpublic Boolean isAutoconfAnalyzerEnabled()
public void setAutoconfAnalyzerEnabled(Boolean autoconfAnalyzerEnabled)
autoconfAnalyzerEnabled - new value of autoconfAnalyzerEnabledpublic Boolean isCMakeAnalyzerEnabled()
public void setCMakeAnalyzerEnabled(Boolean cmakeAnalyzerEnabled)
cmakeAnalyzerEnabled - new value of cmakeAnalyzerEnabledpublic Boolean isBundleAuditAnalyzerEnabled()
public void setBundleAuditAnalyzerEnabled(Boolean bundleAuditAnalyzerEnabled)
bundleAuditAnalyzerEnabled - whether or not the analyzer should be
enabledpublic String getBundleAuditPath()
public void setBundleAuditPath(String bundleAuditPath)
bundleAuditPath - the path to the bundle audit executablepublic boolean isCocoapodsAnalyzerEnabled()
public void setCocoapodsAnalyzerEnabled(Boolean cocoapodsAnalyzerEnabled)
cocoapodsAnalyzerEnabled - the state of the cocoapods analyzerpublic Boolean isSwiftPackageManagerAnalyzerEnabled()
public void setSwiftPackageManagerAnalyzerEnabled(Boolean swiftPackageManagerAnalyzerEnabled)
swiftPackageManagerAnalyzerEnabled - the enabled state of the swift
package managerpublic Boolean isOpensslAnalyzerEnabled()
public void setOpensslAnalyzerEnabled(Boolean opensslAnalyzerEnabled)
opensslAnalyzerEnabled - new value of opensslAnalyzerEnabledpublic Boolean isNodeAnalyzerEnabled()
public void setNodeAnalyzerEnabled(Boolean nodeAnalyzerEnabled)
nodeAnalyzerEnabled - new value of nodeAnalyzerEnabledpublic Boolean isNspAnalyzerEnabled()
public void setNspAnalyzerEnabled(Boolean nspAnalyzerEnabled)
nspAnalyzerEnabled - new value of nspAnalyzerEnabledpublic Boolean isRetireJsAnalyzerEnabled()
public void setRetireJsAnalyzerEnabled(Boolean retireJsAnalyzerEnabled)
retireJsAnalyzerEnabled - new value of retireJsAnalyzerEnabledpublic Boolean isRetirejsFilterNonVulnerable()
public void setRetirejsFilterNonVulnerable(Boolean retirejsFilterNonVulnerable)
retirejsFilterNonVulnerable - new value of
retirejsFilterNonVulnerablepublic List<String> getRetirejsFilters()
public void addConfiguredRetirejsFilter(RetirejsFilter retirejsFilter)
retirejsFilter - the regular expression used to filter based on file
contentpublic Boolean isRubygemsAnalyzerEnabled()
public void setRubygemsAnalyzerEnabled(Boolean rubygemsAnalyzerEnabled)
rubygemsAnalyzerEnabled - new value of rubygemsAnalyzerEnabledpublic Boolean isPyPackageAnalyzerEnabled()
public void setPyPackageAnalyzerEnabled(Boolean pyPackageAnalyzerEnabled)
pyPackageAnalyzerEnabled - new value of pyPackageAnalyzerEnabledpublic Boolean isPyDistributionAnalyzerEnabled()
public void setPyDistributionAnalyzerEnabled(Boolean pyDistributionAnalyzerEnabled)
pyDistributionAnalyzerEnabled - new value of
pyDistributionAnalyzerEnabledpublic Boolean isCentralAnalyzerEnabled()
public void setCentralAnalyzerEnabled(Boolean centralAnalyzerEnabled)
centralAnalyzerEnabled - new value of centralAnalyzerEnabledpublic Boolean isNexusAnalyzerEnabled()
public void setNexusAnalyzerEnabled(Boolean nexusAnalyzerEnabled)
nexusAnalyzerEnabled - new value of nexusAnalyzerEnabledpublic String getNexusUrl()
public void setNexusUrl(String nexusUrl)
nexusUrl - new value of nexusUrlpublic Boolean isNexusUsesProxy()
public void setNexusUsesProxy(Boolean nexusUsesProxy)
nexusUsesProxy - new value of nexusUsesProxypublic String getZipExtensions()
public void setZipExtensions(String zipExtensions)
zipExtensions - new value of zipExtensionspublic String getPathToMono()
public void setPathToMono(String pathToMono)
pathToMono - new value of pathToMonopublic Boolean getCmakeAnalyzerEnabled()
public void setCmakeAnalyzerEnabled(Boolean cmakeAnalyzerEnabled)
cmakeAnalyzerEnabled - new value of cmakeAnalyzerEnabledpublic Boolean getArtifactoryAnalyzerEnabled()
public void setArtifactoryAnalyzerEnabled(Boolean artifactoryAnalyzerEnabled)
artifactoryAnalyzerEnabled - new value of artifactoryAnalyzerEnabledpublic String getArtifactoryAnalyzerUrl()
public void setArtifactoryAnalyzerUrl(String artifactoryAnalyzerUrl)
artifactoryAnalyzerUrl - new value of artifactoryAnalyzerUrlpublic Boolean getArtifactoryAnalyzerUseProxy()
public void setArtifactoryAnalyzerUseProxy(Boolean artifactoryAnalyzerUseProxy)
artifactoryAnalyzerUseProxy - new value of
artifactoryAnalyzerUseProxypublic Boolean getArtifactoryAnalyzerParallelAnalysis()
public void setArtifactoryAnalyzerParallelAnalysis(Boolean artifactoryAnalyzerParallelAnalysis)
artifactoryAnalyzerParallelAnalysis - new value of
artifactoryAnalyzerParallelAnalysispublic String getArtifactoryAnalyzerUsername()
public void setArtifactoryAnalyzerUsername(String artifactoryAnalyzerUsername)
artifactoryAnalyzerUsername - new value of
artifactoryAnalyzerUsernamepublic String getArtifactoryAnalyzerApiToken()
public void setArtifactoryAnalyzerApiToken(String artifactoryAnalyzerApiToken)
artifactoryAnalyzerApiToken - new value of
artifactoryAnalyzerApiTokenpublic String getArtifactoryAnalyzerBearerToken()
public void setArtifactoryAnalyzerBearerToken(String artifactoryAnalyzerBearerToken)
artifactoryAnalyzerBearerToken - new value of
artifactoryAnalyzerBearerTokenpublic void execute()
throws org.apache.tools.ant.BuildException
Updateprotected void populateSettings()
throws org.apache.tools.ant.BuildException
populateSettings in class Updateorg.apache.tools.ant.BuildException - thrown when an invalid setting is configured.Copyright © 2012–2018 OWASP. All rights reserved.