@FunctionalInterface public interface ServerProxyAcceptor
Modifier and Type | Method and Description |
---|---|
boolean |
acceptServerProxyMetadata(ServerSession session,
Buffer buffer)
Invoked before any attempt is made to retrieve the SSH client
identification data of the standard SSH protocol.
|
boolean acceptServerProxyMetadata(ServerSession session, Buffer buffer) throws Exception
session
- The ServerSession
instancebuffer
- The received data Buffer
- if not the 1st time this
method is called because data was lacking on last invocation, then the buffer
is guaranteed to contain the data from all the previous incomplete invocations
plus any new received data. If not enough information is available, the buffer's
read position should be restored to its original value when the method was invoked.true
if successfully extracted the remote client peer meta-data,
false
if more data is required. Upon successful return the buffer read
position is assumed to indicate the first character of the SSH identification lineException
- If failed to correctly extract and parse the meta-data, in which
case the session will be closedCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.