Class PowerAuthRestClientConfiguration
java.lang.Object
com.wultra.security.powerauth.rest.client.PowerAuthRestClientConfiguration
public class PowerAuthRestClientConfiguration
extends java.lang.Object
Configuration of PowerAuth REST client.
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
Constructors Constructor Description PowerAuthRestClientConfiguration() -
Method Summary
Modifier and Type Method Description booleangetAcceptInvalidSslCertificate()Get whether SSL certificate errors are ignored.intgetConnectTimeout()Get connection timeout in milliseconds.intgetMaxMemorySize()Get maximum memory size for HTTP requests in bytes.java.lang.StringgetPowerAuthClientSecret()Get HTTP basic authentication password.java.lang.StringgetPowerAuthClientToken()Get HTTP basic authentication username.java.lang.StringgetProxyHost()Get proxy host.java.lang.StringgetProxyPassword()Get proxy password.intgetProxyPort()Get proxy port.java.lang.StringgetProxyUsername()Get proxy username.booleanisProxyEnabled()Get whether HTTP proxy is enabled.voidsetAcceptInvalidSslCertificate(boolean acceptInvalidSslCertificate)Set whether SSL certificate errors are ignored.voidsetConnectTimeout(int connectTimeout)Set connection timeout in milliseconds.voidsetMaxMemorySize(int maxMemorySize)Set maximum memory size for HTTP requests in bytes.voidsetPowerAuthClientSecret(java.lang.String powerAuthClientSecret)Set HTTP basic authentication password.voidsetPowerAuthClientToken(java.lang.String powerAuthClientToken)Set HTTP basic authentication username.voidsetProxyEnabled(boolean proxyEnabled)Set whether HTTP proxy is enabled.voidsetProxyHost(java.lang.String proxyHost)Set proxy host.voidsetProxyPassword(java.lang.String proxyPassword)Set proxy password.voidsetProxyPort(int proxyPort)Set proxy port.voidsetProxyUsername(java.lang.String proxyUsername)Set proxy username.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PowerAuthRestClientConfiguration
public PowerAuthRestClientConfiguration()
-
-
Method Details
-
getMaxMemorySize
public int getMaxMemorySize()Get maximum memory size for HTTP requests in bytes.- Returns:
- Maximum memory size for HTTP requests in bytes.
-
setMaxMemorySize
public void setMaxMemorySize(int maxMemorySize)Set maximum memory size for HTTP requests in bytes.- Parameters:
maxMemorySize- Maximum memory size for HTTP requests in bytes.
-
getConnectTimeout
public int getConnectTimeout()Get connection timeout in milliseconds.- Returns:
- Connection timeout in milliseconds.
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)Set connection timeout in milliseconds.- Parameters:
connectTimeout- Connection timeout in milliseconds.
-
isProxyEnabled
public boolean isProxyEnabled()Get whether HTTP proxy is enabled.- Returns:
- Whether HTTP proxy is enabled.
-
setProxyEnabled
public void setProxyEnabled(boolean proxyEnabled)Set whether HTTP proxy is enabled.- Parameters:
proxyEnabled- Whether HTTP proxy is enabled.
-
getProxyHost
public java.lang.String getProxyHost()Get proxy host.- Returns:
- Proxy host.
-
setProxyHost
public void setProxyHost(java.lang.String proxyHost)Set proxy host.- Parameters:
proxyHost- Proxy host.
-
getProxyPort
public int getProxyPort()Get proxy port.- Returns:
- Proxy port.
-
setProxyPort
public void setProxyPort(int proxyPort)Set proxy port.- Parameters:
proxyPort- Proxy port.
-
getProxyUsername
public java.lang.String getProxyUsername()Get proxy username.- Returns:
- Proxy username.
-
setProxyUsername
public void setProxyUsername(java.lang.String proxyUsername)Set proxy username.- Parameters:
proxyUsername- Proxy username.s
-
getProxyPassword
public java.lang.String getProxyPassword()Get proxy password.- Returns:
- Proxy password.
-
setProxyPassword
public void setProxyPassword(java.lang.String proxyPassword)Set proxy password.- Parameters:
proxyPassword- Proxy password.
-
getPowerAuthClientToken
public java.lang.String getPowerAuthClientToken()Get HTTP basic authentication username.- Returns:
- HTTP basic authentication username.
-
setPowerAuthClientToken
public void setPowerAuthClientToken(java.lang.String powerAuthClientToken)Set HTTP basic authentication username.- Parameters:
powerAuthClientToken- HTTP basic authentication username.
-
getPowerAuthClientSecret
public java.lang.String getPowerAuthClientSecret()Get HTTP basic authentication password.- Returns:
- HTTP basic authentication password.
-
setPowerAuthClientSecret
public void setPowerAuthClientSecret(java.lang.String powerAuthClientSecret)Set HTTP basic authentication password.- Parameters:
powerAuthClientSecret- HTTP basic authentication password.
-
getAcceptInvalidSslCertificate
public boolean getAcceptInvalidSslCertificate()Get whether SSL certificate errors are ignored.- Returns:
- Whether SSL certificate errors are ignored.
-
setAcceptInvalidSslCertificate
public void setAcceptInvalidSslCertificate(boolean acceptInvalidSslCertificate)Set whether SSL certificate errors are ignored.- Parameters:
acceptInvalidSslCertificate- Whether SSL certificate errors are ignored.
-