com.sshtools.j2ssh.transport.kex
Class KeyExchangeState

java.lang.Object
  extended by com.sshtools.j2ssh.transport.kex.KeyExchangeState

public class KeyExchangeState
extends java.lang.Object

Version:
$Revision: 1.16 $
Author:
$author$

Field Summary
static int COMPLETE
           
static int FAILED
           
static int IN_PROGRESS
           
 
Constructor Summary
KeyExchangeState()
          Creates a new KeyExchangeState object.
 
Method Summary
 byte[] getExchangeHash()
           
 java.lang.String getFailureReason()
           
 byte[] getHostKey()
           
 java.math.BigInteger getSecret()
           
 byte[] getSignature()
           
 int getState()
           
 void setComplete(byte[] exchangeHash, byte[] hostKey, byte[] signature, java.math.BigInteger secret)
           
 void setFailed(java.lang.String reason)
           
 void waitForCompletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IN_PROGRESS

public static final int IN_PROGRESS
See Also:
Constant Field Values

COMPLETE

public static final int COMPLETE
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values
Constructor Detail

KeyExchangeState

public KeyExchangeState()
Creates a new KeyExchangeState object.

Method Detail

setComplete

public final void setComplete(byte[] exchangeHash,
                              byte[] hostKey,
                              byte[] signature,
                              java.math.BigInteger secret)
Parameters:
exchangeHash -
hostKey -
signature -
secret -

getExchangeHash

public byte[] getExchangeHash()
Returns:

setFailed

public final void setFailed(java.lang.String reason)
Parameters:
reason -

getHostKey

public byte[] getHostKey()
Returns:

getSecret

public java.math.BigInteger getSecret()
Returns:

getSignature

public byte[] getSignature()
Returns:

getState

public int getState()
Returns:

waitForCompletion

public final void waitForCompletion()

getFailureReason

public java.lang.String getFailureReason()
Returns:


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