public final class TransportProtocolServer extends com.sshtools.synergy.ssh.TransportProtocol<SshServerContext> implements com.sshtools.common.sshd.AbstractServerTransport<SshServerContext>
activeService, AUTH_CANCELLED_BY_USER, BY_APPLICATION, CHARSET_ENCODING, cipherCS, cipherSC, completedFirstKeyExchange, COMPRESSION_ERROR, compressionCS, compressionSC, con, CONNECTED, CONNECTION_LOST, DISCONNECTED, disconnectStarted, enableExtensionCapability, hasExtensionCapability, HOST_KEY_NOT_VERIFIABLE, HOST_NOT_ALLOWED, hostKey, ILLEGAL_USER_NAME, KEY_EXCHANGE_FAILED, keyExchangeAlgorithm, localIdentification, localkex, lock, MAC_ERROR, macCS, macSC, NEGOTIATING_PROTOCOL, NO_MORE_AUTH_METHODS_AVAILABLE, PERFORMING_KEYEXCHANGE, PROTOCOL_ERROR, PROTOCOL_VERSION_NOT_SUPPORTED, publicKey, receivedRemoteIdentification, remoteIdentification, remotekex, RESERVED, sentLocalIdentification, SERVICE_NOT_AVAILABLE, sessionIdentifier, socketConnection, SSH_MSG_EXT_INFO, SSH_MSG_SERVICE_ACCEPT, SSH_MSG_SERVICE_REQUEST, sshContext, TOO_MANY_CONNECTIONS, uuid
Constructor and Description |
---|
TransportProtocolServer(SshServerContext sshContext,
com.sshtools.synergy.nio.ConnectRequestFuture connectFuture) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canConnect(com.sshtools.synergy.nio.SocketConnection connection) |
protected boolean |
canSendKeyExchangeInit() |
protected void |
disconnected() |
SshServerContext |
getContext() |
protected java.lang.String |
getExtensionNegotiationString() |
java.lang.String |
getName() |
protected void |
initializeKeyExchange(com.sshtools.synergy.ssh.components.SshKeyExchange<SshServerContext> keyExchange,
boolean firstPacketFollows,
boolean useFirstPacket) |
protected void |
keyExchangeInitialized() |
protected void |
onConnected() |
protected void |
onDisconnected() |
protected void |
onKeyExchangeComplete() |
protected void |
onKeyExchangeInit() |
protected void |
onNewKeysReceived() |
protected void |
onNewKeysSent() |
protected void |
processNegotiationString(java.lang.String value) |
protected boolean |
processTransportMessage(int msgId,
byte[] msg) |
void |
startService(com.sshtools.common.sshd.Service<SshServerContext> service) |
addEventListener, completeKeyExchange, disconnect, generateNewKeysClientIn, generateNewKeysClientOut, generateNewKeysServerIn, generateNewKeysServerOut, getAuthenticatedFuture, getBytes, getCipherCS, getCipherSC, getCompressionCS, getCompressionSC, getConnectFuture, getConnection, getDisconnectFuture, getExecutor, getHostKey, getHostKeyAlgorithm, getHostKeyInUse, getKeyExchangeAlgorithm, getKeyExchangeInUse, getLocalAddress, getLocalIdentification, getLocalPort, getMacCS, getMacSC, getQueueSizes, getRemoteAddress, getRemoteCiphersCS, getRemoteCiphersSC, getRemoteCompressionsCS, getRemoteCompressionsSC, getRemoteIdentification, getRemoteKeyExchanges, getRemoteMacsCS, getRemoteMacsSC, getRemotePort, getRemotePublicKeys, getRND, getSessionKey, getSocketConnection, getSshContext, getState, getUUID, hasCompletedKeyExchange, idle, isConnected, isExtensionNegotiationSupported, isSelectorThread, kill, onRemoteIdentificationReceived, onSocketClose, onSocketConnect, onSocketRead, onSocketWrite, postMessage, postMessage, processMessage, registerIdleStateListener, removeIdleStateListener, resetIdleState, selectNegotiatedComponent, sendNewKeys, startBinaryProtocol, transferState, wantsToWrite
addIncomingTask, addOutgoingTask, addTask, cleanupOperations
public TransportProtocolServer(SshServerContext sshContext, com.sshtools.synergy.nio.ConnectRequestFuture connectFuture) throws com.sshtools.synergy.nio.LicenseException
com.sshtools.synergy.nio.LicenseException
public SshServerContext getContext()
getContext
in interface com.sshtools.common.sshd.AbstractServerTransport<SshServerContext>
getContext
in interface com.sshtools.synergy.nio.ProtocolEngine
getContext
in interface com.sshtools.synergy.ssh.SshTransport<SshServerContext>
getContext
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected void processNegotiationString(java.lang.String value) throws java.io.IOException
processNegotiationString
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
java.io.IOException
protected boolean canConnect(com.sshtools.synergy.nio.SocketConnection connection)
canConnect
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected void initializeKeyExchange(com.sshtools.synergy.ssh.components.SshKeyExchange<SshServerContext> keyExchange, boolean firstPacketFollows, boolean useFirstPacket) throws java.io.IOException, com.sshtools.common.ssh.SshException
initializeKeyExchange
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
java.io.IOException
com.sshtools.common.ssh.SshException
protected void onKeyExchangeInit() throws com.sshtools.common.ssh.SshException
onKeyExchangeInit
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
com.sshtools.common.ssh.SshException
protected void onKeyExchangeComplete()
onKeyExchangeComplete
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected void keyExchangeInitialized()
keyExchangeInitialized
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected boolean canSendKeyExchangeInit()
canSendKeyExchangeInit
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected void onNewKeysReceived()
onNewKeysReceived
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected boolean processTransportMessage(int msgId, byte[] msg) throws java.io.IOException
processTransportMessage
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
java.io.IOException
protected void onNewKeysSent()
onNewKeysSent
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected void disconnected()
disconnected
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected void onConnected()
onConnected
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
protected void onDisconnected()
onDisconnected
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
public java.lang.String getName()
getName
in interface com.sshtools.synergy.nio.ProtocolEngine
public void startService(com.sshtools.common.sshd.Service<SshServerContext> service)
startService
in interface com.sshtools.common.sshd.AbstractServerTransport<SshServerContext>
protected java.lang.String getExtensionNegotiationString()
getExtensionNegotiationString
in class com.sshtools.synergy.ssh.TransportProtocol<SshServerContext>
Copyright © 2024. All rights reserved.