Class ProxyConfig


  • public class ProxyConfig
    extends Object
    Merchant proxy configuration
    • Constructor Detail

      • ProxyConfig

        public ProxyConfig​(String host,
                           int port,
                           String username,
                           String password)
        Proxy config constructor.
        Parameters:
        host - the proxy server host address.
        port - the proxy server listening port.
        username - the username used to authenticate against the proxy server.
        password - the password used to authenticate against the proxy server.
    • Method Detail

      • getHost

        public String getHost()
        Get merchant proxy host configuration.
        Returns:
        Merchant proxy host config.
      • getPort

        public int getPort()
        Get merchant proxy port configuration
        Returns:
        Merchant proxy port config
      • getUsername

        public String getUsername()
        Get proxy username to connect to Veritrans API
        Returns:
        Merchant proxy username config
      • getPassword

        public String getPassword()
        Get proxy password to connect to Veritrans API
        Returns:
        Merchant proxy password config
      • builder

        public static ProxyConfigBuilder builder()
        Initialize proxy with builder
        Returns:
        ProxyConfigBuilder