class SessionKeyAndNonce extends SessionKey
INVALID_KEY, KEYSIZE_BYTES
_data
Constructor and Description |
---|
SessionKeyAndNonce(byte[] data,
int nonce)
For outbound Existing Session
|
SessionKeyAndNonce(byte[] data,
int id,
int nonce,
PublicKey remoteKey)
For inbound Existing Session
|
SessionKeyAndNonce(HandshakeState state)
For New Session Replies
|
Modifier and Type | Method and Description |
---|---|
HandshakeState |
getHandshakeState()
For inbound NSR only, else null.
|
int |
getID()
For inbound ES, else 0
|
int |
getNonce()
For ES, else 0
|
PublicKey |
getRemoteKey()
For inbound ES, else null.
|
String |
toString() |
getPreparedKey, length, setData, setPreparedKey
calculateHash, equals, fromBase64, fromByteArray, getData, hashCode, read, readBytes, toBase64, toByteArray, writeBytes
public SessionKeyAndNonce(byte[] data, int nonce)
public SessionKeyAndNonce(byte[] data, int id, int nonce, PublicKey remoteKey)
public SessionKeyAndNonce(HandshakeState state)
public int getNonce()
public int getID()
public PublicKey getRemoteKey()
public HandshakeState getHandshakeState()
public String toString()
toString
in class SimpleDataStructure