Package com.trilead.ssh2.transport
Class KexManager
java.lang.Object
com.trilead.ssh2.transport.KexManager
- All Implemented Interfaces:
MessageHandler
KexManager.
- Version:
- $Id: KexManager.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
Constructor Summary
ConstructorsConstructorDescriptionKexManager
(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, String hostname, int port, ServerHostKeyVerifier keyVerifier, SecureRandom rnd) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkKexAlgorithmList
(String[] algos) static void
checkServerHostkeyAlgorithmsList
(String[] algos) static String[]
static String[]
getOrWaitForConnectionInfo
(int minKexCount) void
handleEndMessage
(Throwable cause) Called to inform that no more messages will be delivered.void
handleMessage
(byte[] msg, int msglen) Handle message.void
initiateKEX
(CryptoWishList cwl, DHGexParameters dhgex)
-
Constructor Details
-
KexManager
public KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, String hostname, int port, ServerHostKeyVerifier keyVerifier, SecureRandom rnd)
-
-
Method Details
-
getOrWaitForConnectionInfo
- Throws:
IOException
-
initiateKEX
- Throws:
IOException
-
getDefaultServerHostkeyAlgorithmList
-
checkServerHostkeyAlgorithmsList
-
getDefaultKexAlgorithmList
-
checkKexAlgorithmList
-
handleMessage
Description copied from interface:MessageHandler
Handle message.- Specified by:
handleMessage
in interfaceMessageHandler
- Parameters:
msg
- the msgmsglen
- the msglen- Throws:
IOException
- the io exception
-
handleEndMessage
Description copied from interface:MessageHandler
Called to inform that no more messages will be delivered.- Specified by:
handleEndMessage
in interfaceMessageHandler
- Parameters:
cause
- For diagnosis, the reason that caused the transport to close down.- Throws:
IOException
- the io exception
-