Class SessionTicketKey


  • public final class SessionTicketKey
    extends java.lang.Object
    Session Ticket Key
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int AES_KEY_SIZE
      Size of session ticket key AES key
      (package private) byte[] aesKey  
      static int HMAC_KEY_SIZE
      Size of session ticket key HMAC key
      (package private) byte[] hmacKey  
      (package private) byte[] name  
      static int NAME_SIZE
      Size of session ticket key name
      static int TICKET_KEY_SIZE
      Size of session ticket key
    • Constructor Summary

      Constructors 
      Constructor Description
      SessionTicketKey​(byte[] name, byte[] hmacKey, byte[] aesKey)
      Construct SessionTicketKey.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getAesKey()
      Get AES Key.
      byte[] getHmacKey()
      Get HMAC key.
      byte[] getName()
      Get name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NAME_SIZE

        public static final int NAME_SIZE
        Size of session ticket key name
        See Also:
        Constant Field Values
      • HMAC_KEY_SIZE

        public static final int HMAC_KEY_SIZE
        Size of session ticket key HMAC key
        See Also:
        Constant Field Values
      • AES_KEY_SIZE

        public static final int AES_KEY_SIZE
        Size of session ticket key AES key
        See Also:
        Constant Field Values
      • TICKET_KEY_SIZE

        public static final int TICKET_KEY_SIZE
        Size of session ticket key
        See Also:
        Constant Field Values
      • name

        final byte[] name
      • hmacKey

        final byte[] hmacKey
      • aesKey

        final byte[] aesKey
    • Constructor Detail

      • SessionTicketKey

        public SessionTicketKey​(byte[] name,
                                byte[] hmacKey,
                                byte[] aesKey)
        Construct SessionTicketKey.
        Parameters:
        name - the name of the session ticket key
        hmacKey - the HMAC key of the session ticket key
        aesKey - the AES key of the session ticket key
    • Method Detail

      • 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