public class SessionTag extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BYTE_LENGTH |
Constructor and Description |
---|
SessionTag()
Instantiate the data array and fill it with random data.
|
SessionTag(boolean create)
Instantiate the data array and fill it with random data.
|
SessionTag(byte[] val) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getData() |
int |
hashCode()
SessionTags are generated both locally and by peers, in quantity,
and are used as keys in several datastructures (see TransientSessionKeyManager),
so we use a secure hashCode function.
|
int |
length() |
String |
toString() |
public static final int BYTE_LENGTH
public SessionTag()
public SessionTag(boolean create)
create
- ignored as of 0.9.44, assumed truepublic SessionTag(byte[] val)
val
- as of 0.9.44, non-null