public class TransportProtocolClient extends 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, uuidCALLBACKS, EVENTS, MESSAGES_INCOMING, MESSAGES_OUTGOING| Constructor and Description |
|---|
TransportProtocolClient(SshClientContext sshContext,
ConnectRequestFuture connectFuture) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canConnect(SocketConnection connection) |
protected void |
completeKeyExchange(SshKeyExchange<SshClientContext> keyExchange) |
protected void |
disconnected() |
Service |
getActiveService() |
java.lang.String |
getName() |
protected void |
initializeKeyExchange(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(Service service) |
void |
startService(Service service) |
addEventListener, canSendKeyExchangeInit, disconnect, generateNewKeysClientIn, generateNewKeysClientOut, generateNewKeysServerIn, generateNewKeysServerOut, 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, wantsToWriteaddIncomingTask, addOutgoingTask, addTask, cleanupOperationspublic TransportProtocolClient(SshClientContext sshContext, ConnectRequestFuture connectFuture) throws LicenseException
LicenseExceptionprotected boolean canConnect(SocketConnection connection)
canConnect in class TransportProtocol<SshClientContext>public boolean onSocketRead(java.nio.ByteBuffer incomingData)
onSocketRead in interface ProtocolEngineonSocketRead in class TransportProtocol<SshClientContext>protected void initializeKeyExchange(SshKeyExchange<SshClientContext> keyExchange, boolean firstPacketFollows, boolean useFirstPacket) throws java.io.IOException, SshException
initializeKeyExchange in class TransportProtocol<SshClientContext>java.io.IOExceptionSshExceptionprotected void onKeyExchangeInit()
onKeyExchangeInit in class TransportProtocol<SshClientContext>protected void completeKeyExchange(SshKeyExchange<SshClientContext> keyExchange)
completeKeyExchange in class TransportProtocol<SshClientContext>protected void onNewKeysReceived()
onNewKeysReceived in class TransportProtocol<SshClientContext>protected void onNewKeysSent()
onNewKeysSent in class TransportProtocol<SshClientContext>protected java.lang.String selectNegotiatedComponent(java.lang.String remotelist,
java.lang.String locallist)
throws java.io.IOException
selectNegotiatedComponent in class TransportProtocol<SshClientContext>java.io.IOExceptionprotected boolean processTransportMessage(int msgid,
byte[] msg)
throws java.io.IOException,
SshException
processTransportMessage in class TransportProtocol<SshClientContext>java.io.IOExceptionSshExceptionpublic void setActiveService(Service service)
public Service getActiveService()
public void startService(Service service)
protected void disconnected()
disconnected in class TransportProtocol<SshClientContext>protected void onConnected()
onConnected in class TransportProtocol<SshClientContext>protected void onDisconnected()
onDisconnected in class TransportProtocol<SshClientContext>public java.lang.String getName()
Copyright © 2022. All rights reserved.