public class ZAProxy extends hudson.model.AbstractDescribableImpl<ZAProxy> implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ZAProxy.ZAProxyDescriptorImpl
Descriptor for
ZAProxy. |
| Modifier and Type | Field and Description |
|---|---|
static String |
CMD_LINE_DAEMON |
static String |
CMD_LINE_DIR |
static String |
CMD_LINE_HOST |
static String |
CMD_LINE_PORT |
static String |
FILE_POLICY_EXTENSION |
static String |
FILE_SESSION_EXTENSION |
static String |
NAME_POLICIES_DIR_ZAP |
| Constructor and Description |
|---|
ZAProxy(boolean autoInstall,
String toolUsed,
String zapHome,
int timeoutInSec,
String filenameLoadSession,
String targetURL,
boolean spiderURL,
boolean scanURL,
boolean scanURLAsUser,
boolean saveReports,
List<String> chosenFormats,
String filenameReports,
boolean saveSession,
String filenameSaveSession,
String zapDefaultDir,
String chosenPolicy,
List<ZAPcmdLine> cmdLinesZAP,
String jdk,
boolean createJiras,
String jiraBaseURL,
String jiraUserName,
String jiraPassword,
String projectKey,
String assignee,
boolean alertHigh,
boolean alertMedium,
boolean alertLow,
boolean filterIssuesByResourceType)
Deprecated.
Old constructor
|
ZAProxy(boolean autoInstall,
String toolUsed,
String zapHome,
int timeoutInSec,
String filenameLoadSession,
String targetURL,
String excludedUrl,
String scanMode,
boolean spiderURL,
boolean spiderAsUser,
boolean ajaxSpiderURL,
boolean ajaxSpiderURLAsUser,
boolean scanURL,
boolean scanURLAsUser,
boolean saveReports,
List<String> chosenFormats,
String filenameReports,
boolean saveSession,
String filenameSaveSession,
String zapDefaultDir,
String chosenPolicy,
List<ZAPcmdLine> cmdLinesZAP,
String jdk,
String username,
String password,
String usernameParameter,
String passwordParameter,
String extraPostData,
String loginUrl,
String loggedInIndicator,
boolean createJiras,
String jiraBaseURL,
String jiraUserName,
String jiraPassword,
String projectKey,
String assignee,
boolean alertHigh,
boolean alertMedium,
boolean alertLow,
boolean filterIssuesByResourceType) |
public static final String FILE_POLICY_EXTENSION
public static final String FILE_SESSION_EXTENSION
public static final String NAME_POLICIES_DIR_ZAP
public static final String CMD_LINE_DIR
public static final String CMD_LINE_HOST
public static final String CMD_LINE_PORT
public static final String CMD_LINE_DAEMON
@Deprecated public ZAProxy(boolean autoInstall, String toolUsed, String zapHome, int timeoutInSec, String filenameLoadSession, String targetURL, boolean spiderURL, boolean scanURL, boolean scanURLAsUser, boolean saveReports, List<String> chosenFormats, String filenameReports, boolean saveSession, String filenameSaveSession, String zapDefaultDir, String chosenPolicy, List<ZAPcmdLine> cmdLinesZAP, String jdk, boolean createJiras, String jiraBaseURL, String jiraUserName, String jiraPassword, String projectKey, String assignee, boolean alertHigh, boolean alertMedium, boolean alertLow, boolean filterIssuesByResourceType)
@DataBoundConstructor
public ZAProxy(boolean autoInstall,
String toolUsed,
String zapHome,
int timeoutInSec,
String filenameLoadSession,
String targetURL,
String excludedUrl,
String scanMode,
boolean spiderURL,
boolean spiderAsUser,
boolean ajaxSpiderURL,
boolean ajaxSpiderURLAsUser,
boolean scanURL,
boolean scanURLAsUser,
boolean saveReports,
List<String> chosenFormats,
String filenameReports,
boolean saveSession,
String filenameSaveSession,
String zapDefaultDir,
String chosenPolicy,
List<ZAPcmdLine> cmdLinesZAP,
String jdk,
String username,
String password,
String usernameParameter,
String passwordParameter,
String extraPostData,
String loginUrl,
String loggedInIndicator,
boolean createJiras,
String jiraBaseURL,
String jiraUserName,
String jiraPassword,
String projectKey,
String assignee,
boolean alertHigh,
boolean alertMedium,
boolean alertLow,
boolean filterIssuesByResourceType)
public void setFilenameReports(String filenameReports)
filenameReports - the filenameReports to setpublic ZAProxy.ZAProxyDescriptorImpl getDescriptor()
public boolean getAutoInstall()
public String getToolUsed()
public String getZapHome()
public int getTimeoutInSec()
public String getFilenameLoadSession()
public String getTargetURL()
public String getExcludedUrl()
public String getScanMode()
public boolean getSpiderURL()
public boolean getAjaxSpiderURL()
public boolean getAjaxSpiderURLAsUser()
public boolean getScanURL()
public boolean getSaveReports()
public String getFilenameReports()
public boolean getSaveSession()
public String getFilenameSaveSession()
public String getZapDefaultDir()
public String getChosenPolicy()
public void setZapProxyHost(String zapProxyHost)
public void setZapProxyPort(int zapProxyPort)
public List<ZAPcmdLine> getCmdLinesZAP()
public boolean getSpiderAsUser()
public boolean getScanURLAsUser()
public String getUsernameParameter()
public String getpasswordParameter()
public String getusername()
public String getpassword()
public String getExtraPostData()
public String getLoginUrl()
public String getLoggedInIndicator()
public boolean getcreateJiras()
public String getProjectKey()
public String getassignee()
public boolean getalertHigh()
public boolean getalertMedium()
public boolean getalertLow()
public boolean getfilterIssuesByResourceType()
public void setJiraBaseURL(String jiraBaseURL)
public void setJiraUserName(String jiraUserName)
public void setJiraPassword(String jiraPassword)
public hudson.model.JDK getJDK()
public String getJdk()
public String isScanMode(String testTypeName)
testTypeName - The String representation of the test type.public void startZAP(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
hudson.Launcher launcher)
throws IllegalArgumentException,
IOException,
InterruptedException
FilePath object and Launcher object.build - listener - the listener to display log during the job execution in jenkinslauncher - the object to launch a process locally or remotelyInterruptedExceptionIOExceptionIllegalArgumentExceptionpublic boolean executeZAP(hudson.FilePath workspace,
hudson.model.BuildListener listener)
workspace - a FilePath representing the build's workspacelistener - the listener to display log during the job execution in jenkinsCopyright © 2004-2016. All Rights Reserved.