Class Network
- java.lang.Object
-
- org.zaproxy.clientapi.gen.Network
-
public class Network extends java.lang.ObjectThis file was automatically generated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiResponseaddAlias(java.lang.String name, java.lang.String enabled)Adds an alias for the local servers/proxies.ApiResponseaddHttpProxyExclusion(java.lang.String host, java.lang.String enabled)Adds a host to be excluded from the HTTP proxy.ApiResponseaddLocalServer(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.ApiResponseaddPassThrough(java.lang.String authority, java.lang.String enabled)Adds an authority to pass-through the local proxies.ApiResponseaddPkcs12ClientCertificate(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.ApiResponseaddRateLimitRule(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 ruleApiResponsegenerateRootCaCert()Generates a new Root CA certificate, used to issue server certificates.ApiResponsegetAliases()Gets the aliases used to identify the local servers/proxies.ApiResponsegetConnectionTimeout()Gets the connection timeout, in seconds.ApiResponsegetDefaultUserAgent()Gets the default user-agent.ApiResponsegetDnsTtlSuccessfulQueries()Gets the TTL (in seconds) of successful DNS queries.ApiResponsegetHttpProxy()Gets the HTTP proxy.ApiResponsegetHttpProxyExclusions()Gets the HTTP proxy exclusions.ApiResponsegetLocalServers()Gets the local servers/proxies.ApiResponsegetPassThroughs()Gets the authorities that will pass-through the local proxies.ApiResponsegetRateLimitRules()List of rate limit rules.ApiResponsegetRootCaCertValidity()Gets the Root CA certificate validity, in days.ApiResponsegetServerCertValidity()Gets the server certificate validity, in days.ApiResponsegetSocksProxy()Gets the SOCKS proxy.ApiResponseimportRootCaCert(java.lang.String filepath)Imports a Root CA certificate to be used to issue server certificates.ApiResponseisHttpProxyAuthEnabled()Tells whether or not the HTTP proxy authentication is enabled.ApiResponseisHttpProxyEnabled()Tells whether or not the HTTP proxy is enabled.ApiResponseisSocksProxyEnabled()Tells whether or not the SOCKS proxy is enabled.ApiResponseisUseGlobalHttpState()Tells whether or not to use global HTTP state.byte[]proxypac()Provides a PAC file, proxying through the main proxy.ApiResponseremoveAlias(java.lang.String name)Removes an alias.ApiResponseremoveHttpProxyExclusion(java.lang.String host)Removes an HTTP proxy exclusion.ApiResponseremoveLocalServer(java.lang.String address, java.lang.String port)Removes a local server/proxy.ApiResponseremovePassThrough(java.lang.String authority)Removes a pass-through.ApiResponseremoveRateLimitRule(java.lang.String description)Remove a rate limit rulebyte[]rootCaCert()Gets the Root CA certificate used to issue server certificates.ApiResponsesetAliasEnabled(java.lang.String name, java.lang.String enabled)Sets whether or not an alias is enabled.ApiResponsesetConnectionTimeout(java.lang.String timeout)Sets the timeout, for reads and connects.ApiResponsesetDefaultUserAgent(java.lang.String useragent)Sets the default user-agent.ApiResponsesetDnsTtlSuccessfulQueries(java.lang.String ttl)Sets the TTL of successful DNS queries.ApiResponsesetHttpProxy(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.ApiResponsesetHttpProxyAuthEnabled(java.lang.String enabled)Sets whether or not the HTTP proxy authentication is enabled.ApiResponsesetHttpProxyEnabled(java.lang.String enabled)Sets whether or not the HTTP proxy is enabled.ApiResponsesetHttpProxyExclusionEnabled(java.lang.String host, java.lang.String enabled)Sets whether or not an HTTP proxy exclusion is enabled.ApiResponsesetPassThroughEnabled(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.ApiResponsesetRateLimitRuleEnabled(java.lang.String description, java.lang.String enabled)Set enabled state for a rate limit rule.ApiResponsesetRootCaCertValidity(java.lang.String validity)Sets the Root CA certificate validity.ApiResponsesetServerCertValidity(java.lang.String validity)Sets the server certificate validity.ApiResponsesetSocksProxy(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.ApiResponsesetSocksProxyEnabled(java.lang.String enabled)Sets whether or not the SOCKS proxy is enabled.ApiResponsesetUseClientCertificate(java.lang.String use)Sets whether or not to use the active client certificate.ApiResponsesetUseGlobalHttpState(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 ClientApiExceptionProvides 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 ClientApiExceptionSets 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 ClientApiExceptionGets 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
-
-