public class TransportProtocolClient extends TransportProtocol<SshClientContext>
activeService, AUTH_CANCELLED_BY_USER, BY_APPLICATION, CHARSET_ENCODING, cipherCS, cipherSC, COMPRESSION_ERROR, compressionCS, compressionSC, con, CONNECTED, CONNECTION_LOST, DISCONNECTED, HOST_KEY_NOT_VERIFIABLE, HOST_NOT_ALLOWED, 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, SSH_MSG_SERVICE_ACCEPT, SSH_MSG_SERVICE_REQUEST, sshContext, TOO_MANY_CONNECTIONS, uuid
CALLBACKS, 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() |
protected void |
disconnected() |
protected void |
initializeKeyExchange(SshKeyExchange<SshClientContext> keyExchange,
boolean firstPacketFollows,
boolean useFirstPacket) |
protected void |
onConnected() |
protected void |
onDisconnected() |
protected void |
onNewKeysReceived() |
protected void |
onNewKeysSent() |
protected boolean |
processTransportMessage(int msgid,
byte[] msg) |
protected String |
selectNegotiatedComponent(String remotelist,
String locallist) |
void |
setActiveService(Service service) |
void |
startService(Service service) |
addEventListener, disconnect, generateNewKeysClientIn, generateNewKeysClientOut, generateNewKeysServerIn, generateNewKeysServerOut, getBytes, getCipherCS, getCipherSC, getCompressionCS, getCompressionSC, getConnectFuture, getConnection, getContext, getDisconnectFuture, getLocalAddress, getLocalPort, getMacCS, getMacSC, getQueueSizes, getRemoteAddress, getRemoteIdentification, getRemotePort, getRND, getSessionKey, getSocketConnection, getSshContext, getState, getUUID, idle, isConnected, keyExchangeInitialized, onRemoteIdentificationReceived, onSocketClose, onSocketConnect, onSocketRead, onSocketWrite, postMessage, postMessage, sendNewKeys, transferState, wantsToWrite
addedTask, addOperationListener, addTask, cleanupOperations, completedTask, getOperationsCount, removeOperationListener, startTask
public TransportProtocolClient(SshClientContext sshContext, ConnectRequestFuture connectFuture) throws LicenseException
LicenseException
protected boolean canConnect(SocketConnection connection)
canConnect
in class TransportProtocol<SshClientContext>
protected void initializeKeyExchange(SshKeyExchange<SshClientContext> keyExchange, boolean firstPacketFollows, boolean useFirstPacket) throws IOException, SshException
initializeKeyExchange
in class TransportProtocol<SshClientContext>
IOException
SshException
protected void completeKeyExchange()
completeKeyExchange
in class TransportProtocol<SshClientContext>
protected void onNewKeysReceived()
onNewKeysReceived
in class TransportProtocol<SshClientContext>
protected void onNewKeysSent()
onNewKeysSent
in class TransportProtocol<SshClientContext>
protected String selectNegotiatedComponent(String remotelist, String locallist) throws IOException
selectNegotiatedComponent
in class TransportProtocol<SshClientContext>
IOException
protected boolean processTransportMessage(int msgid, byte[] msg) throws IOException
processTransportMessage
in class TransportProtocol<SshClientContext>
IOException
public void setActiveService(Service service)
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>
Copyright © 2016. All rights reserved.