class NextSessionKey extends PublicKey
KEYSIZE_BYTES_data| Constructor and Description |
|---|
NextSessionKey(byte[] data,
int id,
boolean isReverse,
boolean isRequest)Create a NextSessionKey from raw key data. |
NextSessionKey(int id,
boolean isReverse,
boolean isRequest)Create a NextSessionKey with null data, for acks/requests only. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj)Compares this public key with another object for equality. |
int | getID() |
int | hashCode()Hash code combining the type and data. |
boolean | isRequest() |
boolean | isReverse() |
String | toString()String representation showing type and data size. |
clearCache, create, create, getPadding, getType, getUnknownTypeCode, lengthcalculateHash, fromBase64, fromByteArray, getData, read, readBytes, setData, toBase64, toByteArray, writeBytespublic NextSessionKey(byte[] data,
int id,
boolean isReverse,
boolean isRequest)data - non-nullid - the session identifierisReverse - whether this is a reverse sessionisRequest - whether this is a requestpublic NextSessionKey(int id,
boolean isReverse,
boolean isRequest)id - the session identifierisReverse - whether this is a reverse sessionisRequest - whether this is a requestpublic boolean equals(Object obj)
PublicKeypublic int getID()
public int hashCode()
PublicKeypublic boolean isRequest()
public boolean isReverse()