public class RatchetSessionTag extends Object
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH |
Constructor and Description |
---|
RatchetSessionTag(byte[] val) |
RatchetSessionTag(long val) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getData() |
long |
getLong() |
int |
hashCode()
We assume the data has enough randomness in it, so use 4 bytes for speed.
|
int |
length() |
String |
toBase64()
12 chars
|
String |
toString() |
public static final int LENGTH
public RatchetSessionTag(long val)
public RatchetSessionTag(byte[] val)
val
- will copy the first 8 bytes. Reference will not be kept.public byte[] getData()
public long getLong()
public int length()
public String toBase64()
public int hashCode()