Class PowerAuthRestClientConfiguration

java.lang.Object
com.wultra.security.powerauth.rest.client.PowerAuthRestClientConfiguration

public class PowerAuthRestClientConfiguration
extends Object
Configuration of PowerAuth REST client.
Author:
Roman Strobl, roman.strobl@wultra.com
  • 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 String getProxyHost()
      Get proxy host.
      Returns:
      Proxy host.
    • setProxyHost

      public void setProxyHost​(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 String getProxyUsername()
      Get proxy username.
      Returns:
      Proxy username.
    • setProxyUsername

      public void setProxyUsername​(String proxyUsername)
      Set proxy username.
      Parameters:
      proxyUsername - Proxy username.s
    • getProxyPassword

      public String getProxyPassword()
      Get proxy password.
      Returns:
      Proxy password.
    • setProxyPassword

      public void setProxyPassword​(String proxyPassword)
      Set proxy password.
      Parameters:
      proxyPassword - Proxy password.
    • getPowerAuthClientToken

      public String getPowerAuthClientToken()
      Get HTTP basic authentication username.
      Returns:
      HTTP basic authentication username.
    • setPowerAuthClientToken

      public void setPowerAuthClientToken​(String powerAuthClientToken)
      Set HTTP basic authentication username.
      Parameters:
      powerAuthClientToken - HTTP basic authentication username.
    • getPowerAuthClientSecret

      public String getPowerAuthClientSecret()
      Get HTTP basic authentication password.
      Returns:
      HTTP basic authentication password.
    • setPowerAuthClientSecret

      public void setPowerAuthClientSecret​(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.