code: public static ProxyInfo setProxyCfg(String host, String port, String userName, String password) {
          return new ProxyInfo(host, port, userName, password);
      }
docs: Set proxy configuration.
  @param host
  @param port
  @param userName
  @param password
  @return proxyinfo instance