Package com.sshtools.j2ssh.transport.kex
Class KeyExchangeState
java.lang.Object
com.sshtools.j2ssh.transport.kex.KeyExchangeState
- Version:
- $Revision: 1.16 $
- Author:
- $author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
byte[]
int
getState()
final void
setComplete
(byte[] exchangeHash, byte[] hostKey, byte[] signature, BigInteger secret) final void
final void
-
Field Details
-
IN_PROGRESS
public static final int IN_PROGRESS- See Also:
-
COMPLETE
public static final int COMPLETE- See Also:
-
FAILED
public static final int FAILED- See Also:
-
-
Constructor Details
-
KeyExchangeState
public KeyExchangeState()Creates a new KeyExchangeState object.
-
-
Method Details
-
setComplete
public final void setComplete(byte[] exchangeHash, byte[] hostKey, byte[] signature, BigInteger secret) - Parameters:
exchangeHash
-hostKey
-signature
-secret
-
-
getExchangeHash
public byte[] getExchangeHash()- Returns:
-
setFailed
- Parameters:
reason
-
-
getHostKey
public byte[] getHostKey()- Returns:
-
getSecret
- Returns:
-
getSignature
public byte[] getSignature()- Returns:
-
getState
public int getState()- Returns:
-
waitForCompletion
public final void waitForCompletion() -
getFailureReason
- Returns:
-