public class DiffieHellmanGroup extends SshKeyExchangeClient
clientId, clientKexInit, e, exchangeHash, f, firstPacketFollows, hostKey, key, secret, serverId, serverKexInit, signature, transport, useFirstPacket
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Get the algorithm name for this key exchange
|
String |
getProvider() |
void |
init(TransportProtocol<SshClientContext> transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket) |
boolean |
isKeyExchangeMessage(int messageid) |
boolean |
processMessage(byte[] m)
Process a key exchange message
|
void |
test() |
calculateExchangeHash, getExchangeHash, getHashAlgorithm, getHostKey, getSecret, getSignature, hasReceivedNewKeys, hasSentNewKeys, isComplete, reset, setReceivedNewKeys, setSentNewKeys
public String getAlgorithm()
public void init(TransportProtocol<SshClientContext> transport, String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvkey, SshPublicKey pubkey, boolean firstPacketFollows, boolean useFirstPacket) throws IOException, SshException
IOException
SshException
public String getProvider()
public boolean processMessage(byte[] m) throws SshException, IOException
SshKeyExchangeClient
processMessage
in interface SshKeyExchange<SshClientContext>
processMessage
in class SshKeyExchangeClient
SshException
IOException
public boolean isKeyExchangeMessage(int messageid)
public void test() throws IOException, SshException
IOException
SshException
Copyright © 2017. All rights reserved.