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()Returns a string representation of this data structure. |
getPreparedKey, length, setData, setPreparedKeycalculateHash, equals, fromBase64, fromByteArray, getData, hashCode, read, readBytes, toBase64, toByteArray, writeBytespublic SessionKeyAndNonce(byte[] data,
int nonce)public SessionKeyAndNonce(byte[] data,
int id,
int nonce,
PublicKey remoteKey)public SessionKeyAndNonce(HandshakeState state)
public HandshakeState getHandshakeState()
public int getID()
public int getNonce()
public PublicKey getRemoteKey()
public String toString()
SimpleDataStructuretoString in class SimpleDataStructure