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, setSentNewKeys
public 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.IOException
SshException
public java.lang.String getProvider()
public boolean processMessage(byte[] m) throws SshException, java.io.IOException
SshKeyExchangeClient
processMessage
in interface SshKeyExchange<SshClientContext>
processMessage
in class SshKeyExchangeClient
SshException
java.io.IOException
public boolean isKeyExchangeMessage(int messageid)
public void test() throws java.io.IOException, SshException
java.io.IOException
SshException
Copyright © 2021. All rights reserved.