DataStructurepublic class SessionKey extends SimpleDataStructure
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
static SessionKey |
INVALID_KEY |
A key with all zeroes in the data
|
static int |
KEYSIZE_BYTES |
_data| コンストラクタ | 説明 |
|---|---|
SessionKey() |
|
SessionKey(byte[] data) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
java.lang.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(java.lang.Object obj) |
readcalculateHash, 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 クラス内 SimpleDataStructurepublic void setData(byte[] data)
setData クラス内 SimpleDataStructuredata - 32 bytes, or nulljava.lang.IllegalArgumentException - if data is not the legal number of bytes (but null is ok)java.lang.RuntimeException - if data already set.public java.lang.Object getPreparedKey()
public void setPreparedKey(java.lang.Object obj)