| Modifiers | Name | Description |
|---|---|---|
protected java.lang.Process |
zapProc |
ZAP process started by the ZapStart task. |
| Type | Name and description |
|---|---|
org.gradle.api.provider.Property<java.lang.String> |
activeScanTimeoutThe timeout, in seconds, to wait for the active scan or spidering to complete. |
org.gradle.api.provider.Property<java.lang.String> |
apiKeyThe API key for authenticating to ZAP. |
org.gradle.api.provider.Property<java.lang.String> |
applicationUrlThe base application URL for spidering. |
org.gradle.api.provider.Property<java.util.List<java.lang.String>> |
parametersExtra parameters to pass on the ZAP command line. |
org.gradle.api.provider.Property<java.lang.String> |
proxyPortThe proxy port on which ZAP is listening. |
org.gradle.api.provider.Property<java.lang.String> |
reportFormatComma and/or space separated list: json, html, xml, md or leave empty for all. |
org.gradle.api.provider.Property<java.lang.String> |
reportOutputPathThe name of report files, without extension. |
org.gradle.api.provider.Property<java.lang.String> |
versionThe version of ZAP to download, if zapInstallDir is not defined. |
org.gradle.api.provider.Provider<java.lang.String> |
zapDirThe working directory for ZAP. |
org.gradle.api.provider.Property<java.lang.String> |
zapInstallDirThe directory where ZAP is installed. |
| Constructor and description |
|---|
ZapPluginExtension
(org.gradle.api.invocation.Gradle gradle, org.gradle.api.model.ObjectFactory objects) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
ZAP process started by the ZapStart task. May not be populated if the #proxyPort points to an already running ZAP.
The timeout, in seconds, to wait for the active scan or spidering to complete. The timeout applies to each spider and scan task, it's not cumulative. A value of 0 will not timeout.
The API key for authenticating to ZAP. Defaults to a random value and is automatically used in tasks and when calling the #api() and #api(Closure) methods. This is required when using an already running ZAP.
The base application URL for spidering.
Extra parameters to pass on the ZAP command line. Some interesting parameters (list all with zap.sh -help).
-config
The proxy port on which ZAP is listening. When empty, a random port will be chosen. If a port is specified and there is a ZAP process listening on the port, the plugin will use the running instance. In this case, #apiKey will also need to be set.
Comma and/or space separated list: json, html, xml, md or leave empty for all.
The name of report files, without extension. The reports will be put into the project buildDir.
The version of ZAP to download, if zapInstallDir is not defined.
The working directory for ZAP.
The directory where ZAP is installed. The directory must contains zap.sh or zap.bat. If not defined, ZAP will be downloaded into the ~/.gradle directory.
Get an instance of ClienApi with the host, port and API key set.
Call a closure with a ClientApi instance as the delegate. This allows things like: zapConfig.api { spider.setOptionAcceptCookies(true) ascan.setOptionHandleAntiCSRFTokens(true) }
Groovy Documentation