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 intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]byte[]intgetState()final voidsetComplete(byte[] exchangeHash, byte[] hostKey, byte[] signature, BigInteger secret) final voidfinal 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:
-