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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
KexManager
public KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, String hostname, int port, ServerHostKeyVerifier keyVerifier, SecureRandom rnd)
-
-
Method Detail
-
getOrWaitForConnectionInfo
public ConnectionInfo getOrWaitForConnectionInfo(int minKexCount) throws IOException
- Throws:
IOException
-
initiateKEX
public void initiateKEX(CryptoWishList cwl, DHGexParameters dhgex) throws IOException
- Throws:
IOException
-
getDefaultServerHostkeyAlgorithmList
public static String[] getDefaultServerHostkeyAlgorithmList()
-
checkServerHostkeyAlgorithmsList
public static void checkServerHostkeyAlgorithmsList(String[] algos)
-
getDefaultKexAlgorithmList
public static String[] getDefaultKexAlgorithmList()
-
checkKexAlgorithmList
public static void checkKexAlgorithmList(String[] algos)
-
handleMessage
public void handleMessage(byte[] msg, int msglen) throws IOExceptionDescription copied from interface:MessageHandlerHandle message.- Specified by:
handleMessagein interfaceMessageHandler- Parameters:
msg- the msgmsglen- the msglen- Throws:
IOException- the io exception
-
handleEndMessage
public void handleEndMessage(Throwable cause) throws IOException
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
-
-