Package org.apache.sshd.client.session
Interface ClientProxyConnector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides a way to implement proxied connections where some metadata about the client is sent before the actual
SSH protocol is executed - e.g., the <A HREF=@http://www.haproxy.org/download/1.6/doc/proxy-protocol.txt">PROXY
protocol. The implementor should use the
IoSession#write(Buffer)
method to send any packets with the
meta-data.- Author:
- Apache MINA SSHD Project
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendClientProxyMetadata
(ClientSession session) Invoked once initial connection has been established so that the proxy can open its channel and send the meta-data to its peer.
-
Method Details
-
sendClientProxyMetadata
Invoked once initial connection has been established so that the proxy can open its channel and send the meta-data to its peer. Upon successful return the SSH identification line is eventually sent and the protocol proceeds as usual.- Parameters:
session
- TheClientSession
instance - Note: at this stage the client's identification line is not set yet.- Throws:
Exception
- If failed to initialize the proxy - which will also terminate the session- See Also:
-