ch.ethz.ssh2.transport

Class KexManager


public class KexManager
extends java.lang.Object

KexManager.

Constructor Summary

KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, String hostname, int port, ServerHostKeyVerifier keyVerifier, SecureRandom rnd)

Method Summary

static void
checkKexAlgorithmList(String[] algos)
static void
checkServerHostkeyAlgorithmsList(String[] algos)
static String[]
getDefaultKexAlgorithmList()
static String[]
getDefaultServerHostkeyAlgorithmList()
ConnectionInfo
getOrWaitForConnectionInfo(int minKexCount)
void
handleMessage(byte[] msg, int msglen)
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

checkKexAlgorithmList

public static final void checkKexAlgorithmList(String[] algos)

checkServerHostkeyAlgorithmsList

public static final void checkServerHostkeyAlgorithmsList(String[] algos)

getDefaultKexAlgorithmList

public static final String[] getDefaultKexAlgorithmList()

getDefaultServerHostkeyAlgorithmList

public static final String[] getDefaultServerHostkeyAlgorithmList()

getOrWaitForConnectionInfo

public ConnectionInfo getOrWaitForConnectionInfo(int minKexCount)
            throws IOException

handleMessage

public void handleMessage(byte[] msg,
                          int msglen)
            throws IOException

initiateKEX

public void initiateKEX(CryptoWishList cwl,
                        DHGexParameters dhgex)
            throws IOException