public class TransportProtocolClient extends com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
activeService, AUTH_CANCELLED_BY_USER, BY_APPLICATION, CHARSET_ENCODING, cipherCS, cipherSC, completedFirstKeyExchange, COMPRESSION_ERROR, compressionCS, compressionSC, con, CONNECTED, CONNECTION_LOST, DISCONNECTED, disconnectStarted, 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_SERVICE_ACCEPT, SSH_MSG_SERVICE_REQUEST, sshContext, TOO_MANY_CONNECTIONS, uuid
Constructor and Description |
---|
TransportProtocolClient(SshClientContext sshContext,
com.sshtools.synergy.nio.ConnectRequestFuture connectFuture) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canConnect(com.sshtools.synergy.nio.SocketConnection connection) |
protected void |
completeKeyExchange(com.sshtools.synergy.ssh.components.SshKeyExchange<SshClientContext> keyExchange) |
protected void |
disconnected() |
com.sshtools.synergy.ssh.Service |
getActiveService() |
java.lang.String |
getName() |
protected void |
initializeKeyExchange(com.sshtools.synergy.ssh.components.SshKeyExchange<SshClientContext> keyExchange,
boolean firstPacketFollows,
boolean useFirstPacket) |
protected void |
onConnected() |
protected void |
onDisconnected() |
protected void |
onKeyExchangeInit() |
protected void |
onNewKeysReceived() |
protected void |
onNewKeysSent() |
boolean |
onSocketRead(java.nio.ByteBuffer incomingData) |
protected boolean |
processTransportMessage(int msgid,
byte[] msg) |
protected java.lang.String |
selectNegotiatedComponent(java.lang.String remotelist,
java.lang.String locallist) |
void |
setActiveService(com.sshtools.synergy.ssh.Service service) |
void |
startService(com.sshtools.synergy.ssh.Service service) |
addEventListener, canSendKeyExchangeInit, disconnect, generateNewKeysClientIn, generateNewKeysClientOut, generateNewKeysServerIn, generateNewKeysServerOut, getAuthenticatedFuture, getBytes, getCipherCS, getCipherSC, getCompressionCS, getCompressionSC, getConnectFuture, getConnection, getContext, 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, isSelectorThread, keyExchangeInitialized, kill, onRemoteIdentificationReceived, onSocketClose, onSocketConnect, onSocketWrite, postMessage, postMessage, processMessage, processNegotiationString, registerIdleStateListener, removeIdleStateListener, resetIdleState, sendNewKeys, startBinaryProtocol, transferState, wantsToWrite
public TransportProtocolClient(SshClientContext sshContext, com.sshtools.synergy.nio.ConnectRequestFuture connectFuture) throws com.sshtools.synergy.nio.LicenseException
com.sshtools.synergy.nio.LicenseException
protected boolean canConnect(com.sshtools.synergy.nio.SocketConnection connection)
canConnect
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
public boolean onSocketRead(java.nio.ByteBuffer incomingData)
onSocketRead
in interface com.sshtools.synergy.nio.ProtocolEngine
onSocketRead
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
protected void initializeKeyExchange(com.sshtools.synergy.ssh.components.SshKeyExchange<SshClientContext> keyExchange, boolean firstPacketFollows, boolean useFirstPacket) throws java.io.IOException, com.sshtools.common.ssh.SshException
initializeKeyExchange
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
java.io.IOException
com.sshtools.common.ssh.SshException
protected void onKeyExchangeInit()
onKeyExchangeInit
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
protected void completeKeyExchange(com.sshtools.synergy.ssh.components.SshKeyExchange<SshClientContext> keyExchange)
completeKeyExchange
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
protected void onNewKeysReceived()
onNewKeysReceived
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
protected void onNewKeysSent()
onNewKeysSent
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
protected java.lang.String selectNegotiatedComponent(java.lang.String remotelist, java.lang.String locallist) throws java.io.IOException
selectNegotiatedComponent
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
java.io.IOException
protected boolean processTransportMessage(int msgid, byte[] msg) throws java.io.IOException, com.sshtools.common.ssh.SshException
processTransportMessage
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
java.io.IOException
com.sshtools.common.ssh.SshException
public void setActiveService(com.sshtools.synergy.ssh.Service service)
public com.sshtools.synergy.ssh.Service getActiveService()
public void startService(com.sshtools.synergy.ssh.Service service)
protected void disconnected()
disconnected
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
protected void onConnected()
onConnected
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
protected void onDisconnected()
onDisconnected
in class com.sshtools.synergy.ssh.TransportProtocol<SshClientContext>
public java.lang.String getName()
Copyright © 2023. All rights reserved.