public class DefaultClientKexExtensionHandler extends AbstractLoggingBean implements KexExtensionHandler
KexExtensionHandler.AvailabilityPhase, KexExtensionHandler.KexPhase| Modifier and Type | Field and Description |
|---|---|
static AttributeRepository.AttributeKey<java.lang.Integer> |
HOSTBOUND_AUTHENTICATION
Session
AttributeRepository.AttributeKey storing the version if the server supports host-bound public key authentication. |
static DefaultClientKexExtensionHandler |
INSTANCE
Default singleton instance.
|
static AttributeRepository.AttributeKey<java.util.Set<java.lang.String>> |
SERVER_ALGORITHMS
Session
AttributeRepository.AttributeKey storing the algorithms announced by the server as known. |
log| Constructor and Description |
|---|
DefaultClientKexExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleKexExtensionRequest(Session session,
int index,
int count,
java.lang.String name,
byte[] data)
Invoked by
KexExtensionHandler.handleKexExtensionsMessage(Session, Buffer) in order to handle a specific extension. |
protected void |
handleServerSignatureAlgorithms(Session session,
java.util.Collection<java.lang.String> serverAlgorithms)
Perform updates after a server-sig-algs extension has been received.
|
boolean |
isKexExtensionsAvailable(Session session,
KexExtensionHandler.AvailabilityPhase phase) |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleKexCompressionMessage, handleKexExtensionNegotiation, handleKexExtensionsMessage, handleKexInitProposal, sendKexExtensionspublic static final DefaultClientKexExtensionHandler INSTANCE
public static final AttributeRepository.AttributeKey<java.util.Set<java.lang.String>> SERVER_ALGORITHMS
AttributeRepository.AttributeKey storing the algorithms announced by the server as known.public static final AttributeRepository.AttributeKey<java.lang.Integer> HOSTBOUND_AUTHENTICATION
AttributeRepository.AttributeKey storing the version if the server supports host-bound public key authentication.public boolean isKexExtensionsAvailable(Session session, KexExtensionHandler.AvailabilityPhase phase) throws java.io.IOException
isKexExtensionsAvailable in interface KexExtensionHandlersession - The Session about to execute KEXphase - The KexExtensionHandler.AvailabilityPhase hint as to why the query is being madetrue whether to KEX extensions are supported/allowed for the sessionjava.io.IOException - If failed to process the requestpublic boolean handleKexExtensionRequest(Session session, int index, int count, java.lang.String name, byte[] data) throws java.io.IOException
KexExtensionHandlerKexExtensionHandler.handleKexExtensionsMessage(Session, Buffer) in order to handle a specific extension.handleKexExtensionRequest in interface KexExtensionHandlersession - The Session through which the message was receivedindex - The 0-based extension indexcount - The total extensions in the messagename - The extension namedata - The extension datatrue whether to proceed to the next extension or stop processing the restjava.io.IOExceptionprotected void handleServerSignatureAlgorithms(Session session, java.util.Collection<java.lang.String> serverAlgorithms)
SERVER_ALGORITHMS of the session.session - the message was received forserverAlgorithms - signature algorithm names announced by the server