com.sshtools.j2ssh.transport.kex

Class 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(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, onInit, performClientExchange, performServerExchange, reset

Constructor Details

DhGroup1Sha1

public DhGroup1Sha1()
Creates a new DhGroup1Sha1 object.

Method Details

calculateExchangeHash

protected void calculateExchangeHash()
            throws KeyExchangeException

onInit

protected void onInit()
            throws IOException
Overrides:
onInit in interface SshKeyExchange

performClientExchange

public void performClientExchange(String clientId,
                                  String serverId,
                                  byte[] clientKexInit,
                                  byte[] serverKexInit)
            throws IOException
Overrides:
performClientExchange in interface SshKeyExchange
Parameters:
clientId -
serverId -
clientKexInit -
serverKexInit -

performServerExchange

public void performServerExchange(String clientId,
                                  String serverId,
                                  byte[] clientKexInit,
                                  byte[] serverKexInit,
                                  SshPrivateKey prvKey)
            throws IOException
Overrides:
performServerExchange in interface SshKeyExchange
Parameters:
clientId -
serverId -
clientKexInit -
serverKexInit -
prvKey -

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