Package io.netty.internal.tcnative
Class SessionTicketKey
java.lang.Object
io.netty.internal.tcnative.SessionTicketKey
Session Ticket Key
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Size of session ticket key AES key(package private) final byte[]
static final int
Size of session ticket key HMAC key(package private) final byte[]
(package private) final byte[]
static final int
Size of session ticket key namestatic final int
Size of session ticket key -
Constructor Summary
ConstructorsConstructorDescriptionSessionTicketKey
(byte[] name, byte[] hmacKey, byte[] aesKey) Construct SessionTicketKey. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get AES Key.byte[]
Get HMAC key.byte[]
getName()
Get name.
-
Field Details
-
NAME_SIZE
public static final int NAME_SIZESize of session ticket key name- See Also:
-
HMAC_KEY_SIZE
public static final int HMAC_KEY_SIZESize of session ticket key HMAC key- See Also:
-
AES_KEY_SIZE
public static final int AES_KEY_SIZESize of session ticket key AES key- See Also:
-
TICKET_KEY_SIZE
public static final int TICKET_KEY_SIZESize of session ticket key- See Also:
-
name
final byte[] name -
hmacKey
final byte[] hmacKey -
aesKey
final byte[] aesKey
-
-
Constructor Details
-
SessionTicketKey
public SessionTicketKey(byte[] name, byte[] hmacKey, byte[] aesKey) Construct SessionTicketKey.- Parameters:
name
- the name of the session ticket keyhmacKey
- the HMAC key of the session ticket keyaesKey
- the AES key of the session ticket key
-
-
Method Details
-
getName
public byte[] getName()Get name.- Returns:
- the name of the session ticket key
-
getHmacKey
public byte[] getHmacKey()Get HMAC key.- Returns:
- the HMAC key of the session ticket key
-
getAesKey
public byte[] getAesKey()Get AES Key.- Returns:
- the AES key of the session ticket key
-