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 voidcalculateExchangeHash()protected voidonInit()voidperformClientExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit)voidperformServerExchange(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:
onInitin classSshKeyExchange- Throws:
java.io.IOExceptionAlgorithmNotSupportedException
-
performClientExchange
public void performClientExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit) throws java.io.IOException- Specified by:
performClientExchangein classSshKeyExchange- Parameters:
clientId-serverId-clientKexInit-serverKexInit-- Throws:
java.io.IOExceptionAlgorithmOperationExceptionKeyExchangeException
-
performServerExchange
public void performServerExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvKey) throws java.io.IOException- Specified by:
performServerExchangein classSshKeyExchange- Parameters:
clientId-serverId-clientKexInit-serverKexInit-prvKey-- Throws:
java.io.IOExceptionKeyExchangeException
-
calculateExchangeHash
protected void calculateExchangeHash() throws KeyExchangeException- Throws:
KeyExchangeException
-
-