Package com.trilead.ssh2.transport
Class KexManager
- java.lang.Object
-
- com.trilead.ssh2.transport.KexManager
-
- All Implemented Interfaces:
MessageHandler
public class KexManager extends java.lang.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, java.lang.String hostname, int port, ServerHostKeyVerifier keyVerifier, java.security.SecureRandom rnd)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkKexAlgorithmList(java.lang.String[] algos)
static void
checkServerHostkeyAlgorithmsList(java.lang.String[] algos)
static java.lang.String[]
getDefaultKexAlgorithmList()
static java.lang.String[]
getDefaultServerHostkeyAlgorithmList()
ConnectionInfo
getOrWaitForConnectionInfo(int minKexCount)
void
handleEndMessage(java.lang.Throwable cause)
Called to inform that no more messages will be delivered.void
handleMessage(byte[] msg, int msglen)
void
initiateKEX(CryptoWishList cwl, DHGexParameters dhgex)
-
-
-
Constructor Detail
-
KexManager
public KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, java.lang.String hostname, int port, ServerHostKeyVerifier keyVerifier, java.security.SecureRandom rnd)
-
-
Method Detail
-
getOrWaitForConnectionInfo
public ConnectionInfo getOrWaitForConnectionInfo(int minKexCount) throws java.io.IOException
- Throws:
java.io.IOException
-
initiateKEX
public void initiateKEX(CryptoWishList cwl, DHGexParameters dhgex) throws java.io.IOException
- Throws:
java.io.IOException
-
getDefaultServerHostkeyAlgorithmList
public static final java.lang.String[] getDefaultServerHostkeyAlgorithmList()
-
checkServerHostkeyAlgorithmsList
public static final void checkServerHostkeyAlgorithmsList(java.lang.String[] algos)
-
getDefaultKexAlgorithmList
public static final java.lang.String[] getDefaultKexAlgorithmList()
-
checkKexAlgorithmList
public static final void checkKexAlgorithmList(java.lang.String[] algos)
-
handleMessage
public void handleMessage(byte[] msg, int msglen) throws java.io.IOException
- Specified by:
handleMessage
in interfaceMessageHandler
- Throws:
java.io.IOException
-
handleEndMessage
public void handleEndMessage(java.lang.Throwable cause) throws java.io.IOException
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:
java.io.IOException
-
-