Top Description Methods
org.apache.sshd.client.session

public Interface ClientProxyConnector

Annotations
@FunctionalInterface
Imports
org.apache.sshd.core.CoreModuleProperties

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 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 TypeMethod and Description
public void
sendClientProxyMetadata(ClientSession
The ClientSession instance - Note: at this stage the client's identification line is not set yet.
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 Detail

sendClientProxyMetadataback to summary
public void sendClientProxyMetadata(ClientSession session) throws Exception

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:ClientSession

The ClientSession instance - Note: at this stage the client's identification line is not set yet.

Exceptions
Exception:
If failed to initialize the proxy - which will also terminate the session
See Also
SEND_IMMEDIATE_IDENTIFICATION