Class Network
- java.lang.Object
-
- org.zaproxy.clientapi.gen.Network
-
public class Network extends java.lang.Object
This file was automatically generated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiResponse
addAlias(java.lang.String name, java.lang.String enabled)
Adds an alias for the local servers/proxies.ApiResponse
addHttpProxyExclusion(java.lang.String host, java.lang.String enabled)
Adds a host to be excluded from the HTTP proxy.ApiResponse
addLocalServer(java.lang.String address, java.lang.String port, java.lang.String api, java.lang.String proxy, java.lang.String behindnat, java.lang.String decoderesponse, java.lang.String removeacceptencoding)
Adds a local server/proxy.ApiResponse
addPassThrough(java.lang.String authority, java.lang.String enabled)
Adds an authority to pass-through the local proxies.ApiResponse
addPkcs12ClientCertificate(java.lang.String filepath, java.lang.String password, java.lang.String index)
Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.ApiResponse
addRateLimitRule(java.lang.String description, java.lang.String enabled, java.lang.String matchregex, java.lang.String matchstring, java.lang.String requestspersecond, java.lang.String groupby)
Adds a rate limit ruleApiResponse
generateRootCaCert()
Generates a new Root CA certificate, used to issue server certificates.ApiResponse
getAliases()
Gets the aliases used to identify the local servers/proxies.ApiResponse
getConnectionTimeout()
Gets the connection timeout, in seconds.ApiResponse
getDefaultUserAgent()
Gets the default user-agent.ApiResponse
getDnsTtlSuccessfulQueries()
Gets the TTL (in seconds) of successful DNS queries.ApiResponse
getHttpProxy()
Gets the HTTP proxy.ApiResponse
getHttpProxyExclusions()
Gets the HTTP proxy exclusions.ApiResponse
getLocalServers()
Gets the local servers/proxies.ApiResponse
getPassThroughs()
Gets the authorities that will pass-through the local proxies.ApiResponse
getRateLimitRules()
List of rate limit rules.ApiResponse
getRootCaCertValidity()
Gets the Root CA certificate validity, in days.ApiResponse
getServerCertValidity()
Gets the server certificate validity, in days.ApiResponse
getSocksProxy()
Gets the SOCKS proxy.ApiResponse
importRootCaCert(java.lang.String filepath)
Imports a Root CA certificate to be used to issue server certificates.ApiResponse
isHttpProxyAuthEnabled()
Tells whether or not the HTTP proxy authentication is enabled.ApiResponse
isHttpProxyEnabled()
Tells whether or not the HTTP proxy is enabled.ApiResponse
isSocksProxyEnabled()
Tells whether or not the SOCKS proxy is enabled.ApiResponse
isUseGlobalHttpState()
Tells whether or not to use global HTTP state.byte[]
proxypac()
Provides a PAC file, proxying through the main proxy.ApiResponse
removeAlias(java.lang.String name)
Removes an alias.ApiResponse
removeHttpProxyExclusion(java.lang.String host)
Removes an HTTP proxy exclusion.ApiResponse
removeLocalServer(java.lang.String address, java.lang.String port)
Removes a local server/proxy.ApiResponse
removePassThrough(java.lang.String authority)
Removes a pass-through.ApiResponse
removeRateLimitRule(java.lang.String description)
Remove a rate limit rulebyte[]
rootCaCert()
Gets the Root CA certificate used to issue server certificates.ApiResponse
setAliasEnabled(java.lang.String name, java.lang.String enabled)
Sets whether or not an alias is enabled.ApiResponse
setConnectionTimeout(java.lang.String timeout)
Sets the timeout, for reads and connects.ApiResponse
setDefaultUserAgent(java.lang.String useragent)
Sets the default user-agent.ApiResponse
setDnsTtlSuccessfulQueries(java.lang.String ttl)
Sets the TTL of successful DNS queries.ApiResponse
setHttpProxy(java.lang.String host, java.lang.String port, java.lang.String realm, java.lang.String username, java.lang.String password)
Sets the HTTP proxy configuration.ApiResponse
setHttpProxyAuthEnabled(java.lang.String enabled)
Sets whether or not the HTTP proxy authentication is enabled.ApiResponse
setHttpProxyEnabled(java.lang.String enabled)
Sets whether or not the HTTP proxy is enabled.ApiResponse
setHttpProxyExclusionEnabled(java.lang.String host, java.lang.String enabled)
Sets whether or not an HTTP proxy exclusion is enabled.ApiResponse
setPassThroughEnabled(java.lang.String authority, java.lang.String enabled)
Sets whether or not a pass-through is enabled.byte[]
setProxy(java.lang.String proxy)
Sets the HTTP proxy configuration.ApiResponse
setRateLimitRuleEnabled(java.lang.String description, java.lang.String enabled)
Set enabled state for a rate limit rule.ApiResponse
setRootCaCertValidity(java.lang.String validity)
Sets the Root CA certificate validity.ApiResponse
setServerCertValidity(java.lang.String validity)
Sets the server certificate validity.ApiResponse
setSocksProxy(java.lang.String host, java.lang.String port, java.lang.String version, java.lang.String usedns, java.lang.String username, java.lang.String password)
Sets the SOCKS proxy configuration.ApiResponse
setSocksProxyEnabled(java.lang.String enabled)
Sets whether or not the SOCKS proxy is enabled.ApiResponse
setUseClientCertificate(java.lang.String use)
Sets whether or not to use the active client certificate.ApiResponse
setUseGlobalHttpState(java.lang.String use)
Sets whether or not to use the global HTTP state.
-
-
-
Constructor Detail
-
Network
public Network(ClientApi api)
-
-
Method Detail
-
getRootCaCertValidity
public ApiResponse getRootCaCertValidity() throws ClientApiException
Gets the Root CA certificate validity, in days. Used when generating a new Root CA certificate.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getServerCertValidity
public ApiResponse getServerCertValidity() throws ClientApiException
Gets the server certificate validity, in days. Used when generating server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getAliases
public ApiResponse getAliases() throws ClientApiException
Gets the aliases used to identify the local servers/proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getLocalServers
public ApiResponse getLocalServers() throws ClientApiException
Gets the local servers/proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getPassThroughs
public ApiResponse getPassThroughs() throws ClientApiException
Gets the authorities that will pass-through the local proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getConnectionTimeout
public ApiResponse getConnectionTimeout() throws ClientApiException
Gets the connection timeout, in seconds.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getDefaultUserAgent
public ApiResponse getDefaultUserAgent() throws ClientApiException
Gets the default user-agent.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getDnsTtlSuccessfulQueries
public ApiResponse getDnsTtlSuccessfulQueries() throws ClientApiException
Gets the TTL (in seconds) of successful DNS queries.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getHttpProxy
public ApiResponse getHttpProxy() throws ClientApiException
Gets the HTTP proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getHttpProxyExclusions
public ApiResponse getHttpProxyExclusions() throws ClientApiException
Gets the HTTP proxy exclusions.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getSocksProxy
public ApiResponse getSocksProxy() throws ClientApiException
Gets the SOCKS proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isHttpProxyAuthEnabled
public ApiResponse isHttpProxyAuthEnabled() throws ClientApiException
Tells whether or not the HTTP proxy authentication is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isHttpProxyEnabled
public ApiResponse isHttpProxyEnabled() throws ClientApiException
Tells whether or not the HTTP proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isSocksProxyEnabled
public ApiResponse isSocksProxyEnabled() throws ClientApiException
Tells whether or not the SOCKS proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isUseGlobalHttpState
public ApiResponse isUseGlobalHttpState() throws ClientApiException
Tells whether or not to use global HTTP state.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getRateLimitRules
public ApiResponse getRateLimitRules() throws ClientApiException
List of rate limit rules.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
generateRootCaCert
public ApiResponse generateRootCaCert() throws ClientApiException
Generates a new Root CA certificate, used to issue server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
importRootCaCert
public ApiResponse importRootCaCert(java.lang.String filepath) throws ClientApiException
Imports a Root CA certificate to be used to issue server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setRootCaCertValidity
public ApiResponse setRootCaCertValidity(java.lang.String validity) throws ClientApiException
Sets the Root CA certificate validity. Used when generating a new Root CA certificate.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setServerCertValidity
public ApiResponse setServerCertValidity(java.lang.String validity) throws ClientApiException
Sets the server certificate validity. Used when generating server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addAlias
public ApiResponse addAlias(java.lang.String name, java.lang.String enabled) throws ClientApiException
Adds an alias for the local servers/proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addLocalServer
public ApiResponse addLocalServer(java.lang.String address, java.lang.String port, java.lang.String api, java.lang.String proxy, java.lang.String behindnat, java.lang.String decoderesponse, java.lang.String removeacceptencoding) throws ClientApiException
Adds a local server/proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addPassThrough
public ApiResponse addPassThrough(java.lang.String authority, java.lang.String enabled) throws ClientApiException
Adds an authority to pass-through the local proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeAlias
public ApiResponse removeAlias(java.lang.String name) throws ClientApiException
Removes an alias.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeLocalServer
public ApiResponse removeLocalServer(java.lang.String address, java.lang.String port) throws ClientApiException
Removes a local server/proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removePassThrough
public ApiResponse removePassThrough(java.lang.String authority) throws ClientApiException
Removes a pass-through.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setAliasEnabled
public ApiResponse setAliasEnabled(java.lang.String name, java.lang.String enabled) throws ClientApiException
Sets whether or not an alias is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setPassThroughEnabled
public ApiResponse setPassThroughEnabled(java.lang.String authority, java.lang.String enabled) throws ClientApiException
Sets whether or not a pass-through is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setConnectionTimeout
public ApiResponse setConnectionTimeout(java.lang.String timeout) throws ClientApiException
Sets the timeout, for reads and connects.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setDefaultUserAgent
public ApiResponse setDefaultUserAgent(java.lang.String useragent) throws ClientApiException
Sets the default user-agent.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setDnsTtlSuccessfulQueries
public ApiResponse setDnsTtlSuccessfulQueries(java.lang.String ttl) throws ClientApiException
Sets the TTL of successful DNS queries.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addHttpProxyExclusion
public ApiResponse addHttpProxyExclusion(java.lang.String host, java.lang.String enabled) throws ClientApiException
Adds a host to be excluded from the HTTP proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeHttpProxyExclusion
public ApiResponse removeHttpProxyExclusion(java.lang.String host) throws ClientApiException
Removes an HTTP proxy exclusion.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxy
public ApiResponse setHttpProxy(java.lang.String host, java.lang.String port, java.lang.String realm, java.lang.String username, java.lang.String password) throws ClientApiException
Sets the HTTP proxy configuration.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxyAuthEnabled
public ApiResponse setHttpProxyAuthEnabled(java.lang.String enabled) throws ClientApiException
Sets whether or not the HTTP proxy authentication is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxyEnabled
public ApiResponse setHttpProxyEnabled(java.lang.String enabled) throws ClientApiException
Sets whether or not the HTTP proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxyExclusionEnabled
public ApiResponse setHttpProxyExclusionEnabled(java.lang.String host, java.lang.String enabled) throws ClientApiException
Sets whether or not an HTTP proxy exclusion is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setSocksProxy
public ApiResponse setSocksProxy(java.lang.String host, java.lang.String port, java.lang.String version, java.lang.String usedns, java.lang.String username, java.lang.String password) throws ClientApiException
Sets the SOCKS proxy configuration.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setSocksProxyEnabled
public ApiResponse setSocksProxyEnabled(java.lang.String enabled) throws ClientApiException
Sets whether or not the SOCKS proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setUseGlobalHttpState
public ApiResponse setUseGlobalHttpState(java.lang.String use) throws ClientApiException
Sets whether or not to use the global HTTP state.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addPkcs12ClientCertificate
public ApiResponse addPkcs12ClientCertificate(java.lang.String filepath, java.lang.String password, java.lang.String index) throws ClientApiException
Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setUseClientCertificate
public ApiResponse setUseClientCertificate(java.lang.String use) throws ClientApiException
Sets whether or not to use the active client certificate.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addRateLimitRule
public ApiResponse addRateLimitRule(java.lang.String description, java.lang.String enabled, java.lang.String matchregex, java.lang.String matchstring, java.lang.String requestspersecond, java.lang.String groupby) throws ClientApiException
Adds a rate limit ruleThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeRateLimitRule
public ApiResponse removeRateLimitRule(java.lang.String description) throws ClientApiException
Remove a rate limit ruleThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setRateLimitRuleEnabled
public ApiResponse setRateLimitRuleEnabled(java.lang.String description, java.lang.String enabled) throws ClientApiException
Set enabled state for a rate limit rule.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
proxypac
public byte[] proxypac() throws ClientApiException
Provides a PAC file, proxying through the main proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setProxy
public byte[] setProxy(java.lang.String proxy) throws ClientApiException
Sets the HTTP proxy configuration.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
rootCaCert
public byte[] rootCaCert() throws ClientApiException
Gets the Root CA certificate used to issue server certificates. Suitable to import into client applications (e.g. browsers).This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
-