Serializable, DataStructurepublic class SessionKey extends SimpleDataStructure
| Modifier and Type | Field | Description |
|---|---|---|
static SessionKey |
INVALID_KEY |
A key with all zeroes in the data
|
static int |
KEYSIZE_BYTES |
_data| Constructor | Description |
|---|---|
SessionKey() |
|
SessionKey(byte[] data) |
| Modifier and Type | Method | Description |
|---|---|---|
Object |
getPreparedKey() |
retrieve an internal representation of the session key, as known
by the AES engine used.
|
int |
length() |
The legal length of the byte array in this data structure
|
void |
setData(byte[] data) |
Sets the data.
|
void |
setPreparedKey(Object obj) |
readclone, finalize, getClass, notify, notifyAll, wait, wait, waitcalculateHash, equals, fromBase64, fromByteArray, getData, hashCode, readBytes, toBase64, toByteArray, toString, writeBytespublic static final int KEYSIZE_BYTES
public static final SessionKey INVALID_KEY
public int length()
SimpleDataStructurelength in class SimpleDataStructurepublic void setData(byte[] data)
setData in class SimpleDataStructuredata - 32 bytes, or nullIllegalArgumentException - if data is not the legal number of bytes (but null is ok)RuntimeException - if data already set.public Object getPreparedKey()
public void setPreparedKey(Object obj)