private SshConnection(HostAndPort hostAndPort, LoginCredentials loginCredentials, Optional<Proxy> proxy, int connectTimeout, int sessionTimeout, Optional<Connector> agentConnector) { this.hostAndPort_ = checkNotNull(hostAndPort); this.loginCredentials_ = checkNotNull(loginCredentials, " login for %s", hostAndPort); this.proxy_ = checkNotNull(proxy, " proxy for %s", hostAndPort); this.connectTimeout_ = checkNotNull(connectTimeout); this.sessionTimeout_ = checkNotNull(sessionTimeout); this.agentConnector_ = checkNotNull(agentConnector, "agent connector for %s", hostAndPort); }
public SftpOperations(Proxy proxy) { this.proxy = proxy; }
public Proxy getProxy() { return proxy; }
/** * @return the proxy */ public Optional<Proxy> getProxy() { return proxy_; }
/** * To use a custom configured com.jcraft.jsch.Proxy. * This proxy is used to consume/send messages from the target SFTP host. */ public void setProxy(Proxy proxy) { this.proxy = proxy; }