Package com.trilead.ssh2.transport
Class KexManager
java.lang.Object
com.trilead.ssh2.transport.KexManager
- All Implemented Interfaces:
MessageHandler
KexManager.
-
Constructor Summary
ConstructorsConstructorDescriptionKexManager
(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, String hostname, int port, ServerHostKeyVerifier keyVerifier, SecureRandom rnd) -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
checkKexAlgorithmList
(String[] algos) static final void
checkServerHostkeyAlgorithmsList
(String[] algos) static final String[]
static final String[]
getOrWaitForConnectionInfo
(int minKexCount) void
handleEndMessage
(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 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
- Specified by:
handleMessage
in interfaceMessageHandler
- Throws:
IOException
-
handleEndMessage
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:
IOException
-