class NextSessionKey extends PublicKey
KEYSIZE_BYTES
_data
Constructor and Description |
---|
NextSessionKey(byte[] data,
int id,
boolean isReverse,
boolean isRequest) |
NextSessionKey(int id,
boolean isReverse,
boolean isRequest)
Null data, for acks/requests only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Warning - this returns true for two different classes with the same size
and same data, e.g.
|
int |
getID() |
int |
hashCode()
We assume the data has enough randomness in it, so use the first 4 bytes for speed.
|
boolean |
isRequest() |
boolean |
isReverse() |
String |
toString() |
clearCache, create, create, getPadding, getType, getUnknownTypeCode, length, toTypedKey
calculateHash, fromBase64, fromByteArray, getData, readBytes, setData, toBase64, toByteArray, writeBytes
read
public NextSessionKey(byte[] data, int id, boolean isReverse, boolean isRequest)
data
- non-nullpublic NextSessionKey(int id, boolean isReverse, boolean isRequest)
public int getID()
public boolean isReverse()
public boolean isRequest()
public int hashCode()
SimpleDataStructure
public boolean equals(Object obj)
SimpleDataStructure