Package com.trilead.ssh2.transport
Class KexManager
java.lang.Object
com.trilead.ssh2.transport.KexManager
- All Implemented Interfaces:
MessageHandler
public class KexManager extends Object implements 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
Constructors Constructor Description KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, String hostname, int port, ServerHostKeyVerifier keyVerifier, SecureRandom rnd) -
Method Summary
Modifier and Type Method Description static voidcheckKexAlgorithmList(String[] algos)static voidcheckServerHostkeyAlgorithmsList(String[] algos)static String[]getDefaultKexAlgorithmList()static String[]getDefaultServerHostkeyAlgorithmList()ConnectionInfogetOrWaitForConnectionInfo(int minKexCount)voidhandleEndMessage(Throwable cause)Called to inform that no more messages will be delivered.voidhandleMessage(byte[] msg, int msglen)Handle message.voidinitiateKEX(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:MessageHandlerHandle message.- Specified by:
handleMessagein interfaceMessageHandler- Parameters:
msg- the msgmsglen- the msglen- Throws:
IOException- the io exception
-
handleEndMessage
Description copied from interface:MessageHandlerCalled to inform that no more messages will be delivered.- Specified by:
handleEndMessagein interfaceMessageHandler- Parameters:
cause- For diagnosis, the reason that caused the transport to close down.- Throws:
IOException- the io exception
-