public class RatchetSessionTag extends Object
| Modifier and Type | Field and Description |
|---|---|
static int | LENGTHLength of the tag in bytes |
| Constructor and Description |
|---|
RatchetSessionTag(byte[] val) |
RatchetSessionTag(long val)Constructs tag from a long value for compact 8-byte storage. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj)Compares by long value for fast identity. |
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(byte[] val)
val - will copy the first 8 bytes. Reference will not be kept.public RatchetSessionTag(long val)
public boolean equals(Object obj)
public byte[] getData()
public long getLong()
public int hashCode()
public int length()
public String toBase64()