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(com.sshtools.synergy.ssh.SshTransport<SshClientContext> transport,
java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
com.sshtools.common.ssh.components.SshPrivateKey prvkey,
com.sshtools.common.ssh.components.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, setSentNewKeys
public java.lang.String getAlgorithm()
public void init(com.sshtools.synergy.ssh.SshTransport<SshClientContext> transport, java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit, com.sshtools.common.ssh.components.SshPrivateKey prvkey, com.sshtools.common.ssh.components.SshPublicKey pubkey, boolean firstPacketFollows, boolean useFirstPacket) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public java.lang.String getProvider()
public boolean processMessage(byte[] m) throws com.sshtools.common.ssh.SshException, java.io.IOException
SshKeyExchangeClient
processMessage
in interface com.sshtools.synergy.ssh.components.SshKeyExchange<SshClientContext>
processMessage
in class SshKeyExchangeClient
com.sshtools.common.ssh.SshException
java.io.IOException
public boolean isKeyExchangeMessage(int messageid)
public void test() throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
Copyright © 2022. All rights reserved.