public class DiffieHellmanEcdh extends SshKeyExchangeClient implements SshKeyExchange
| Modifier and Type | Field and Description |
|---|---|
static int |
SSH_MSG_KEX_ECDH_INIT |
static int |
SSH_MSG_KEX_ECDH_REPLY |
exchangeHash, hostKey, secret, signature, transport| Modifier | Constructor and Description |
|---|---|
protected |
DiffieHellmanEcdh(String name,
String curve,
String hashAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateExchangeHash() |
String |
getAlgorithm()
Get the key exchange algorithm name.
|
boolean |
isKeyExchangeMessage(int messageid) |
void |
performClientExchange(String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit)
Override to perform the client side key exchange.
|
getExchangeHash, getHashAlgorithm, getHostKey, getSecret, getSignature, init, resetpublic static final int SSH_MSG_KEX_ECDH_INIT
public static final int SSH_MSG_KEX_ECDH_REPLY
public String getAlgorithm()
SshKeyExchangeClientgetAlgorithm in class SshKeyExchangeClientpublic void performClientExchange(String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit) throws SshException
SshKeyExchangeClientperformClientExchange in class SshKeyExchangeClientSshExceptionpublic boolean isKeyExchangeMessage(int messageid)
isKeyExchangeMessage in class SshKeyExchangeClientprotected void calculateExchangeHash()
throws SshException
SshExceptionCopyright © 2016. All rights reserved.