com.sshtools.j2ssh.transport.kex
Class DhGroup1Sha1

java.lang.Object
  extended by com.sshtools.j2ssh.transport.kex.SshKeyExchange
      extended by 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
DhGroup1Sha1()
          Creates a new DhGroup1Sha1 object.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DhGroup1Sha1

public DhGroup1Sha1()
Creates a new DhGroup1Sha1 object.

Method Detail

onInit

protected void onInit()
               throws java.io.IOException
Specified by:
onInit in class SshKeyExchange
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 class SshKeyExchange
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 class SshKeyExchange
Parameters:
clientId -
serverId -
clientKexInit -
serverKexInit -
prvKey -
Throws:
java.io.IOException
KeyExchangeException

calculateExchangeHash

protected void calculateExchangeHash()
                              throws KeyExchangeException
Throws:
KeyExchangeException


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.