Class Socks5ProxyConnector

java.lang.Object
org.apache.sshd.client.session.proxy.AbstractProxyConnector
org.apache.sshd.client.session.proxy.Socks5ProxyConnector
All Implemented Interfaces:
Closeable, AutoCloseable

public class Socks5ProxyConnector extends AbstractProxyConnector
A AbstractProxyConnector to connect through a SOCKS5 proxy.
See Also:
  • Constructor Details

    • Socks5ProxyConnector

      public Socks5ProxyConnector(ProxyData proxy, InetSocketAddress remoteAddress, org.apache.sshd.common.util.io.functors.IOFunction<org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.common.io.IoWriteFuture> send, Function<InetSocketAddress, PasswordAuthentication> passwordAuth)
      Creates a new Socks5ProxyConnector. The connector supports anonymous connections as well as username-password or Kerberos5 (GSS-API) authentication.
      Parameters:
      proxy - ProxyData of the proxy we're connected to
      remoteAddress - InetSocketAddress of the target server to connect to
      send - a function to send data and returning an IoWriteFuture
      passwordAuth - a function to query the user for proxy credentials, if needed, and returning a PasswordAuthentication
  • Method Details