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 |
|---|---|
java.lang.String |
getAlgorithm()
Get the algorithm name for this key exchange
|
java.lang.String |
getProvider() |
void |
init(SshTransport<SshClientContext> transport,
java.lang.String clientId,
java.lang.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, getPriority, getSecret, getSecurityLevel, getSignature, hasReceivedNewKeys, hasSentNewKeys, isComplete, reset, setReceivedNewKeys, setSentNewKeyspublic java.lang.String getAlgorithm()
public void init(SshTransport<SshClientContext> transport, java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvkey, SshPublicKey pubkey, boolean firstPacketFollows, boolean useFirstPacket) throws java.io.IOException, SshException
java.io.IOExceptionSshExceptionpublic java.lang.String getProvider()
public boolean processMessage(byte[] m)
throws SshException,
java.io.IOException
SshKeyExchangeClientprocessMessage in interface SshKeyExchange<SshClientContext>processMessage in class SshKeyExchangeClientSshExceptionjava.io.IOExceptionpublic boolean isKeyExchangeMessage(int messageid)
public void test()
throws java.io.IOException,
SshException
java.io.IOExceptionSshExceptionCopyright © 2022. All rights reserved.