public final class TransportProtocolServer extends TransportProtocol<SshServerContext>
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 |
---|
TransportProtocolServer(SshServerContext sshContext,
ConnectRequestFuture connectFuture) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canConnect(SocketConnection connection) |
protected void |
disconnected() |
SshServerContext |
getContext() |
protected void |
initializeKeyExchange(SshKeyExchange<SshServerContext> keyExchange,
boolean firstPacketFollows,
boolean useFirstPacket) |
protected void |
keyExchangeInitialized() |
protected void |
onConnected() |
protected void |
onDisconnected() |
protected void |
onNewKeysReceived() |
protected void |
onNewKeysSent() |
protected boolean |
processTransportMessage(int msgId,
byte[] msg) |
addEventListener, completeKeyExchange, disconnect, generateNewKeysClientIn, generateNewKeysClientOut, generateNewKeysServerIn, generateNewKeysServerOut, getBytes, getCipherCS, getCipherSC, getCompressionCS, getCompressionSC, getConnectFuture, getConnection, getDisconnectFuture, getLocalAddress, getLocalPort, getMacCS, getMacSC, getQueueSizes, getRemoteAddress, getRemoteIdentification, getRemotePort, getRND, getSessionKey, getSocketConnection, getSshContext, getState, getUUID, idle, isConnected, onRemoteIdentificationReceived, onSocketClose, onSocketConnect, onSocketRead, onSocketWrite, postMessage, postMessage, selectNegotiatedComponent, sendNewKeys, transferState, wantsToWrite
addedTask, addOperationListener, addTask, cleanupOperations, completedTask, getOperationsCount, removeOperationListener, startTask
public TransportProtocolServer(SshServerContext sshContext, ConnectRequestFuture connectFuture) throws LicenseException
LicenseException
public SshServerContext getContext()
getContext
in class TransportProtocol<SshServerContext>
protected boolean canConnect(SocketConnection connection)
canConnect
in class TransportProtocol<SshServerContext>
protected void initializeKeyExchange(SshKeyExchange<SshServerContext> keyExchange, boolean firstPacketFollows, boolean useFirstPacket) throws IOException, SshException
initializeKeyExchange
in class TransportProtocol<SshServerContext>
IOException
SshException
protected void keyExchangeInitialized()
keyExchangeInitialized
in class TransportProtocol<SshServerContext>
protected void onNewKeysReceived()
onNewKeysReceived
in class TransportProtocol<SshServerContext>
protected boolean processTransportMessage(int msgId, byte[] msg) throws IOException
processTransportMessage
in class TransportProtocol<SshServerContext>
IOException
protected void onNewKeysSent()
onNewKeysSent
in class TransportProtocol<SshServerContext>
protected void disconnected()
disconnected
in class TransportProtocol<SshServerContext>
protected void onConnected()
onConnected
in class TransportProtocol<SshServerContext>
protected void onDisconnected()
onDisconnected
in class TransportProtocol<SshServerContext>
Copyright © 2016. All rights reserved.