public class SessionTag extends Object
| Modifier and Type | Field and Description |
|---|---|
static int | BYTE_LENGTHTag length in bytes (32). |
| 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)As of 0.9.44, non-null. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj)Compares this session tag with another object for equality. |
byte[] | getData()Data. |
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()32 (tag length in bytes). |
String | toString()Returns a string representation of this session tag. |
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-nullpublic boolean equals(Object obj)
public byte[] getData()
public int hashCode()
public int length()