public class KeyExchangeState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPLETE |
static int |
FAILED |
static int |
IN_PROGRESS |
Constructor and Description |
---|
KeyExchangeState()
Creates a new KeyExchangeState object.
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final int IN_PROGRESS
public static final int COMPLETE
public static final int FAILED
public KeyExchangeState()
public final void setComplete(byte[] exchangeHash, byte[] hostKey, byte[] signature, java.math.BigInteger secret)
exchangeHash
- hostKey
- signature
- secret
- public byte[] getExchangeHash()
public final void setFailed(java.lang.String reason)
reason
- public byte[] getHostKey()
public java.math.BigInteger getSecret()
public byte[] getSignature()
public int getState()
public final void waitForCompletion()
public java.lang.String getFailureReason()
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.