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)
Warning - this returns true for two different classes with the same size
and same data, e.g.
|
byte[] |
getData() |
int |
hashCode()
We assume the data has enough randomness in it, so use the first 4 bytes for speed.
|
int |
length() |
String |
toBase64() |
String |
toString() |
public static final int LENGTH
public RatchetSessionTag(long val)
public RatchetSessionTag(byte[] val)
public byte[] getData()
public int length()
public String toBase64()
public int hashCode()
public boolean equals(Object obj)