Class QualysGlobalConfig
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- com.qualys.plugins.containerSecurity.config.QualysGlobalConfig
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class QualysGlobalConfig extends GlobalConfiguration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description QualysGlobalConfig()
-
Method Summary
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
xStreamCompatibility
@Initializer(before=PLUGINS_STARTED) public static void xStreamCompatibility()
-
getConfigFile
protected XmlFile getConfigFile()
- Overrides:
getConfigFile
in classDescriptor<GlobalConfiguration>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId)
-
doFillProxyCredentialsIdItems
@POST public ListBoxModel doFillProxyCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String proxyCredentialsId)
-
doCheckCveList
public FormValidation doCheckCveList(@QueryParameter String cveList)
-
doCheckConnection
@POST public FormValidation doCheckConnection(@QueryParameter String apiServer, @QueryParameter String credentialsId, @QueryParameter String proxyServer, @QueryParameter String proxyPort, @QueryParameter String proxyCredentialsId, @QueryParameter boolean useProxy, @AncestorInPath Item item)
-
doCheckApiServer
public FormValidation doCheckApiServer(@QueryParameter String apiServer)
-
doCheckWebhookUrl
public FormValidation doCheckWebhookUrl(@QueryParameter String webhookUrl)
-
doCheckApiUser
public FormValidation doCheckApiUser(@QueryParameter String apiUser)
-
doCheckApiPass
public FormValidation doCheckApiPass(@QueryParameter String apiPass)
-
doCheckPollingInterval
public FormValidation doCheckPollingInterval(@QueryParameter String pollingInterval)
-
doCheckVulnsTimeout
public FormValidation doCheckVulnsTimeout(@QueryParameter String vulnsTimeout)
-
doCheckSeverity1Limit
public FormValidation doCheckSeverity1Limit(@QueryParameter String severity1Limit)
-
doCheckSeverity2Limit
public FormValidation doCheckSeverity2Limit(@QueryParameter String severity2Limit)
-
doCheckSeverity3Limit
public FormValidation doCheckSeverity3Limit(@QueryParameter String severity3Limit)
-
doCheckSeverity4Limit
public FormValidation doCheckSeverity4Limit(@QueryParameter String severity4Limit)
-
doCheckSeverity5Limit
public FormValidation doCheckSeverity5Limit(@QueryParameter String severity5Limit)
-
doCheckQidList
public FormValidation doCheckQidList(@QueryParameter String qidList)
-
doCheckQidExcludeList
public FormValidation doCheckQidExcludeList(@QueryParameter String qidExcludeList)
-
doCheckProxyServer
public FormValidation doCheckProxyServer(@QueryParameter String proxyServer)
-
doCheckProxyPort
public FormValidation doCheckProxyPort(@QueryParameter String proxyPort)
-
doCheckCvssThreshold
public FormValidation doCheckCvssThreshold(@QueryParameter String cvssThreshold)
-
get
public static QualysGlobalConfig get()
-
getApiServer
public String getApiServer()
-
setApiServer
public void setApiServer(String arg)
-
getPlatform
public String getPlatform()
-
setPlatform
public void setPlatform(String platform)
-
setPollingInterval
public void setPollingInterval(String poll)
-
getPollingInterval
public String getPollingInterval()
-
setVulnsTimeout
public void setVulnsTimeout(String poll)
-
getVulnsTimeout
public String getVulnsTimeout()
-
getIsFailOnSevereVulns
public boolean getIsFailOnSevereVulns()
-
setIsFailOnSevereVulns
public void setIsFailOnSevereVulns(boolean failOnSev)
-
setSeverity1Limit
public void setSeverity1Limit(int limit)
-
getSeverity1Limit
public int getSeverity1Limit()
-
setSeverity2Limit
public void setSeverity2Limit(int limit)
-
getSeverity2Limit
public int getSeverity2Limit()
-
setSeverity3Limit
public void setSeverity3Limit(int limit)
-
getSeverity3Limit
public int getSeverity3Limit()
-
setSeverity4Limit
public void setSeverity4Limit(int limit)
-
getSeverity4Limit
public int getSeverity4Limit()
-
setSeverity5Limit
public void setSeverity5Limit(int limit)
-
getSeverity5Limit
public int getSeverity5Limit()
-
setIsSev1Vulns
public void setIsSev1Vulns(boolean sev)
-
getIsSev1Vulns
public boolean getIsSev1Vulns()
-
setIsSev2Vulns
public void setIsSev2Vulns(boolean sev)
-
getIsSev2Vulns
public boolean getIsSev2Vulns()
-
setIsSev3Vulns
public void setIsSev3Vulns(boolean sev)
-
getIsSev3Vulns
public boolean getIsSev3Vulns()
-
setIsSev4Vulns
public void setIsSev4Vulns(boolean sev)
-
getIsSev4Vulns
public boolean getIsSev4Vulns()
-
setIsSev5Vulns
public void setIsSev5Vulns(boolean sev)
-
getIsSev5Vulns
public boolean getIsSev5Vulns()
-
setProxyServer
public void setProxyServer(String server)
-
getProxyServer
public String getProxyServer()
-
setProxyPort
public void setProxyPort(int port)
-
getProxyPort
public int getProxyPort()
-
setProxyCredentialsId
public void setProxyCredentialsId(String proxyCredentialsId)
-
getProxyCredentialsId
public String getProxyCredentialsId()
-
setUseProxy
public void setUseProxy(boolean useProxy)
-
getUseProxy
public boolean getUseProxy()
-
setIsFailOnQidFound
public void setIsFailOnQidFound(boolean isFail)
-
getIsFailOnQidFound
public boolean getIsFailOnQidFound()
-
getFailByCvss
public boolean getFailByCvss()
-
setFailByCvss
@DataBoundSetter public void setFailByCvss(boolean failByCvss)
-
getCvssVersion
public String getCvssVersion()
-
setCvssVersion
@DataBoundSetter public void setCvssVersion(String cvssVersion)
-
getCvssThreshold
public String getCvssThreshold()
-
setCvssThreshold
@DataBoundSetter public void setCvssThreshold(String cvssThreshold)
-
setQidList
public void setQidList(String qidList)
-
getQidList
public String getQidList()
-
getIsPotentialVulnsToBeChecked
public boolean getIsPotentialVulnsToBeChecked()
-
setIsPotentialVulnsToBeChecked
public void setIsPotentialVulnsToBeChecked(boolean potential)
-
setCredentialsId
public void setCredentialsId(String cred)
-
getCredentialsId
public String getCredentialsId()
-
getWebhookUrl
public String getWebhookUrl()
-
setWebhookUrl
public void setWebhookUrl(String webhookUrl)
-
getIsFailOnCVEs
public boolean getIsFailOnCVEs()
-
getProxyUsername
public String getProxyUsername()
-
setProxyUsername
@DataBoundSetter public void setProxyUsername(String proxyUsername)
-
getProxyPassword
public Secret getProxyPassword()
-
setProxyPassword
@DataBoundSetter public void setProxyPassword(String proxyPassword)
-
getCveList
public String getCveList()
-
setIsFailOnCVEs
public void setIsFailOnCVEs(boolean isFailOnCVEs)
-
setCveList
public void setCveList(String list)
-
setDockerUrl
public void setDockerUrl(String dockerUrl)
-
getDockerUrl
public String getDockerUrl()
-
setDockerCert
public void setDockerCert(String dockerCert)
-
getDockerCert
public String getDockerCert()
-
getIsExcludeConditions
public boolean getIsExcludeConditions()
-
setIsExcludeConditions
public void setIsExcludeConditions(boolean isExcludeConditions)
-
getExcludeList
public String getExcludeList()
-
setExcludeList
public void setExcludeList(String cveExcludeList)
-
getExcludeBy
public String getExcludeBy()
-
setExcludeBy
public void setExcludeBy(String excludeBy)
-
setSoftwareList
public void setSoftwareList(String list)
-
getIsFailOnSoftware
public boolean getIsFailOnSoftware()
-
setIsFailOnSoftware
public void setIsFailOnSoftware(boolean software)
-
getSoftwareList
public String getSoftwareList()
-
-