Package com.sshtools.j2ssh.transport.kex
Class DhGroup1Sha1
- java.lang.Object
-
- com.sshtools.j2ssh.transport.kex.SshKeyExchange
-
- com.sshtools.j2ssh.transport.kex.DhGroup1Sha1
-
public class DhGroup1Sha1 extends SshKeyExchange
- 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 Constructor Description DhGroup1Sha1()
Creates a new DhGroup1Sha1 object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculateExchangeHash()
protected void
onInit()
void
performClientExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit)
void
performServerExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvKey)
-
Methods inherited from class com.sshtools.j2ssh.transport.kex.SshKeyExchange
getExchangeHash, getHostKey, getSecret, getSignature, init, reset
-
-
-
-
Method Detail
-
onInit
protected void onInit() throws java.io.IOException
- Specified by:
onInit
in classSshKeyExchange
- Throws:
java.io.IOException
AlgorithmNotSupportedException
-
performClientExchange
public void performClientExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit) throws java.io.IOException
- Specified by:
performClientExchange
in classSshKeyExchange
- Parameters:
clientId
-serverId
-clientKexInit
-serverKexInit
-- Throws:
java.io.IOException
AlgorithmOperationException
KeyExchangeException
-
performServerExchange
public void performServerExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvKey) throws java.io.IOException
- Specified by:
performServerExchange
in classSshKeyExchange
- Parameters:
clientId
-serverId
-clientKexInit
-serverKexInit
-prvKey
-- Throws:
java.io.IOException
KeyExchangeException
-
calculateExchangeHash
protected void calculateExchangeHash() throws KeyExchangeException
- Throws:
KeyExchangeException
-
-