code: public void setProxy(String proxyHost, int proxyPort, String username, String password) {
          setProxy(proxyHost, proxyPort);
          proxyAuth = true;
          proxyUser = username;
          proxyPassword = password;
      }
docs: Set a proxy with authentication for REST-requests.
  
  @param proxyHost
  @param proxyPort
  @param username
  @param password