Package com.sshtools.j2ssh.transport.kex
Class DhGroup1Sha1
java.lang.Object
com.sshtools.j2ssh.transport.kex.SshKeyExchange
com.sshtools.j2ssh.transport.kex.DhGroup1Sha1
- Version:
- $Revision: 1.25 $
- Author:
- $author$
-
Field Summary
Fields inherited from class com.sshtools.j2ssh.transport.kex.SshKeyExchange
exchangeHash, hostKey, messageStore, secret, signature, transport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
onInit()
void
performClientExchange
(String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit) void
performServerExchange
(String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvKey) Methods inherited from class com.sshtools.j2ssh.transport.kex.SshKeyExchange
getExchangeHash, getHostKey, getSecret, getSignature, init, reset
-
Constructor Details
-
DhGroup1Sha1
public DhGroup1Sha1()Creates a new DhGroup1Sha1 object.
-
-
Method Details
-
onInit
- Specified by:
onInit
in classSshKeyExchange
- Throws:
IOException
AlgorithmNotSupportedException
-
performClientExchange
public void performClientExchange(String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit) throws IOException - Specified by:
performClientExchange
in classSshKeyExchange
- Parameters:
clientId
-serverId
-clientKexInit
-serverKexInit
-- Throws:
IOException
AlgorithmOperationException
KeyExchangeException
-
performServerExchange
public void performServerExchange(String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvKey) throws IOException - Specified by:
performServerExchange
in classSshKeyExchange
- Parameters:
clientId
-serverId
-clientKexInit
-serverKexInit
-prvKey
-- Throws:
IOException
KeyExchangeException
-
calculateExchangeHash
- Throws:
KeyExchangeException
-