public class Socks5ClientConnector extends AbstractClientProxyConnector
AbstractClientProxyConnector
to connect through a SOCKS5 proxy.proxyAddress, proxyPassword, proxyUser, remoteAddress
TIMEOUT_PROPERTY
Constructor and Description |
---|
Socks5ClientConnector(InetSocketAddress proxyAddress,
InetSocketAddress remoteAddress)
Creates a new
Socks5ClientConnector . |
Socks5ClientConnector(InetSocketAddress proxyAddress,
InetSocketAddress remoteAddress,
String proxyUser,
char[] proxyPassword)
Creates a new
Socks5ClientConnector . |
Modifier and Type | Method and Description |
---|---|
void |
messageReceived(org.apache.sshd.common.io.IoSession session,
org.apache.sshd.common.util.Readable buffer)
Handle a received message.
|
void |
sendClientProxyMetadata(org.apache.sshd.client.session.ClientSession sshSession) |
adjustTimeout, clearPassword, getTimeout, init, runWhenDone, setDone
public Socks5ClientConnector(@NonNull InetSocketAddress proxyAddress, @NonNull InetSocketAddress remoteAddress)
Socks5ClientConnector
. The connector supports
anonymous connections as well as username-password or Kerberos5 (GSS-API)
authentication.proxyAddress
- of the proxy server we're connecting toremoteAddress
- of the target server to connect topublic Socks5ClientConnector(@NonNull InetSocketAddress proxyAddress, @NonNull InetSocketAddress remoteAddress, String proxyUser, char[] proxyPassword)
Socks5ClientConnector
. The connector supports
anonymous connections as well as username-password or Kerberos5 (GSS-API)
authentication.proxyAddress
- of the proxy server we're connecting toremoteAddress
- of the target server to connect toproxyUser
- to authenticate at the proxy withproxyPassword
- to authenticate at the proxy withpublic void sendClientProxyMetadata(org.apache.sshd.client.session.ClientSession sshSession) throws Exception
Exception
public void messageReceived(org.apache.sshd.common.io.IoSession session, org.apache.sshd.common.util.Readable buffer) throws Exception
StatefulProxyConnector
session
- to use for writing databuffer
- received dataException
- if data cannot be read, or the connection attempt failsCopyright © 2020 Eclipse JGit Project. All rights reserved.