Package com.sshtools.j2ssh.transport.kex
Class KeyExchangeState
- java.lang.Object
-
- com.sshtools.j2ssh.transport.kex.KeyExchangeState
-
public class KeyExchangeState extends java.lang.Object- Version:
- $Revision: 1.16 $
- Author:
- $author$
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMPLETEstatic intFAILEDstatic intIN_PROGRESS
-
Constructor Summary
Constructors Constructor Description KeyExchangeState()Creates a new KeyExchangeState object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getExchangeHash()java.lang.StringgetFailureReason()byte[]getHostKey()java.math.BigIntegergetSecret()byte[]getSignature()intgetState()voidsetComplete(byte[] exchangeHash, byte[] hostKey, byte[] signature, java.math.BigInteger secret)voidsetFailed(java.lang.String reason)voidwaitForCompletion()
-
-
-
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
-
-
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:
-
-