MessageHandlerpublic class KexManager extends java.lang.Object implements MessageHandler
| Constructor | Description |
|---|---|
KexManager(TransportManager tm,
ClientServerHello csh,
CryptoWishList initialCwl,
java.lang.String hostname,
int port,
ServerHostKeyVerifier keyVerifier,
java.security.SecureRandom rnd) |
| 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) |
public KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, java.lang.String hostname, int port, ServerHostKeyVerifier keyVerifier, java.security.SecureRandom rnd)
public ConnectionInfo getOrWaitForConnectionInfo(int minKexCount) throws java.io.IOException
java.io.IOExceptionpublic void initiateKEX(CryptoWishList cwl, DHGexParameters dhgex) throws java.io.IOException
java.io.IOExceptionpublic static final java.lang.String[] getDefaultServerHostkeyAlgorithmList()
public static final void checkServerHostkeyAlgorithmsList(java.lang.String[] algos)
public static final java.lang.String[] getDefaultKexAlgorithmList()
public static final void checkKexAlgorithmList(java.lang.String[] algos)
public void handleMessage(byte[] msg,
int msglen)
throws java.io.IOException
handleMessage in interface MessageHandlerjava.io.IOExceptionpublic void handleEndMessage(java.lang.Throwable cause)
throws java.io.IOException
MessageHandlerhandleEndMessage in interface MessageHandlercause - For diagnosis, the reason that caused the transport to close down.java.io.IOException