com.sshtools.j2ssh.transport.kex

Class 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()
String
getFailureReason()
byte[]
getHostKey()
BigInteger
getSecret()
byte[]
getSignature()
int
getState()
void
setComplete(byte[] exchangeHash, byte[] hostKey, byte[] signature, BigInteger secret)
void
setFailed(String reason)
void
waitForCompletion()

Field Details

COMPLETE

public static final int COMPLETE
Field Value:
1

FAILED

public static final int FAILED
Field Value:
2

IN_PROGRESS

public static final int IN_PROGRESS
Field Value:
0

Constructor Details

KeyExchangeState

public KeyExchangeState()
Creates a new KeyExchangeState object.

Method Details

getExchangeHash

public byte[] getExchangeHash()
Returns:

getFailureReason

public String getFailureReason()
Returns:

getHostKey

public byte[] getHostKey()
Returns:

getSecret

public BigInteger getSecret()
Returns:

getSignature

public byte[] getSignature()
Returns:

getState

public int getState()
Returns:

setComplete

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

setFailed

public final void setFailed(String reason)
Parameters:
reason -

waitForCompletion

public final void waitForCompletion()

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