public class TransportProtocolServer extends TransportProtocolCommon
algorithmsIn, algorithmsOut, clientIdent, clientKexInit, completeOnNewKeys, EOL_CRLF, EOL_LF, hostKey, hosts, k, kexs, messageStore, properties, PROTOCOL_VERSION, serverIdent, serverKexInit, sessionIdentifier, signature, SOFTWARE_VERSION_COMMENTS, sshIn, sshOut, state| Constructor and Description |
|---|
TransportProtocolServer()
Creates a new TransportProtocolServer object.
|
TransportProtocolServer(boolean refuse)
Creates a new TransportProtocolServer object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptService(Service service) |
protected SshMsgKexInit |
createLocalKexInit() |
protected java.lang.String |
getDecryptionAlgorithm() |
protected java.lang.String |
getEncryptionAlgorithm() |
protected java.lang.String |
getInputStreamCompAlgortihm() |
protected java.lang.String |
getInputStreamMacAlgorithm() |
java.lang.String |
getLocalId() |
protected SshMsgKexInit |
getLocalKexInit() |
protected java.lang.String |
getOutputStreamCompAlgorithm() |
protected java.lang.String |
getOutputStreamMacAlgorithm() |
java.lang.String |
getRemoteId() |
protected SshMsgKexInit |
getRemoteKexInit() |
protected void |
onDisconnect() |
protected void |
onMessageReceived(SshMessage msg) |
protected void |
onStartTransportProtocol() |
protected void |
performKeyExchange(SshKeyExchange kex) |
void |
refuseConnection() |
void |
registerTransportMessages() |
protected void |
setLocalIdent() |
protected void |
setLocalKexInit(SshMsgKexInit msg) |
protected void |
setRemoteIdent(java.lang.String ident) |
protected void |
setRemoteKexInit(SshMsgKexInit msg) |
protected void |
setupNewKeys(byte[] encryptCSKey,
byte[] encryptCSIV,
byte[] encryptSCKey,
byte[] encryptSCIV,
byte[] macCSKey,
byte[] macSCKey) |
protected void |
startBinaryPacketProtocol() |
addEventHandler, addMessageStore, beginKeyExchange, completeKeyExchange, determineAlgorithm, disconnect, getConnectionId, getEventHandlers, getIncomingByteCount, getKexAlgorithm, getOutgoingByteCount, getProperties, getRemoteEOL, getSessionIdentifier, getState, getUnderlyingProviderDetail, isConnected, onCorruptMac, processMessages, readMessage, removeMessageStore, run, sendDisconnect, sendDisconnect, sendKeyExchangeInit, sendMessage, sendNewKeys, setKexTimeout, setKexTransferLimit, setSendIgnore, startTransportProtocol, stop, unregisterMessagepublic TransportProtocolServer()
throws java.io.IOException
java.io.IOExceptionpublic TransportProtocolServer(boolean refuse)
throws java.io.IOException
refuse - java.io.IOExceptionprotected void onDisconnect()
onDisconnect in class TransportProtocolCommonpublic void acceptService(Service service) throws java.io.IOException
service - java.io.IOExceptionpublic void refuseConnection()
throws java.io.IOException
java.io.IOExceptionpublic void registerTransportMessages()
throws MessageAlreadyRegisteredException
registerTransportMessages in class TransportProtocolCommonMessageAlreadyRegisteredExceptionprotected void startBinaryPacketProtocol()
throws java.io.IOException
startBinaryPacketProtocol in class TransportProtocolCommonjava.io.IOExceptionprotected java.lang.String getDecryptionAlgorithm()
throws AlgorithmNotAgreedException
getDecryptionAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedExceptionprotected java.lang.String getEncryptionAlgorithm()
throws AlgorithmNotAgreedException
getEncryptionAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedExceptionprotected java.lang.String getInputStreamCompAlgortihm()
throws AlgorithmNotAgreedException
getInputStreamCompAlgortihm in class TransportProtocolCommonAlgorithmNotAgreedExceptionprotected java.lang.String getInputStreamMacAlgorithm()
throws AlgorithmNotAgreedException
getInputStreamMacAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedExceptionprotected void setLocalIdent()
setLocalIdent in class TransportProtocolCommonpublic java.lang.String getLocalId()
getLocalId in class TransportProtocolCommonprotected void setLocalKexInit(SshMsgKexInit msg)
setLocalKexInit in class TransportProtocolCommonmsg - protected SshMsgKexInit getLocalKexInit()
getLocalKexInit in class TransportProtocolCommonprotected java.lang.String getOutputStreamCompAlgorithm()
throws AlgorithmNotAgreedException
getOutputStreamCompAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedExceptionprotected java.lang.String getOutputStreamMacAlgorithm()
throws AlgorithmNotAgreedException
getOutputStreamMacAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedExceptionprotected void setRemoteIdent(java.lang.String ident)
setRemoteIdent in class TransportProtocolCommonident - public java.lang.String getRemoteId()
getRemoteId in class TransportProtocolCommonprotected void setRemoteKexInit(SshMsgKexInit msg)
setRemoteKexInit in class TransportProtocolCommonmsg - protected SshMsgKexInit getRemoteKexInit()
getRemoteKexInit in class TransportProtocolCommonprotected SshMsgKexInit createLocalKexInit() throws java.io.IOException
createLocalKexInit in class TransportProtocolCommonjava.io.IOExceptionTransportProtocolExceptionprotected void onStartTransportProtocol()
throws java.io.IOException
onStartTransportProtocol in class TransportProtocolCommonjava.io.IOExceptionprotected void performKeyExchange(SshKeyExchange kex) throws java.io.IOException
performKeyExchange in class TransportProtocolCommonkex - java.io.IOExceptionKeyExchangeExceptionprotected void onMessageReceived(SshMessage msg) throws java.io.IOException
onMessageReceived in class TransportProtocolCommonmsg - java.io.IOExceptionprotected void setupNewKeys(byte[] encryptCSKey,
byte[] encryptCSIV,
byte[] encryptSCKey,
byte[] encryptSCIV,
byte[] macCSKey,
byte[] macSCKey)
throws AlgorithmNotAgreedException,
AlgorithmOperationException,
AlgorithmNotSupportedException,
AlgorithmInitializationException
setupNewKeys in class TransportProtocolCommonencryptCSKey - encryptCSIV - encryptSCKey - encryptSCIV - macCSKey - macSCKey - AlgorithmNotAgreedExceptionAlgorithmOperationExceptionAlgorithmNotSupportedExceptionAlgorithmInitializationExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.