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 int
COMPLETE
static int
FAILED
static int
IN_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.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()
-
-
-
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:
-
-