Home / Class/ OpenSslSessionTicketKey Class — netty Architecture

OpenSslSessionTicketKey Class — netty Architecture

Architecture documentation for the OpenSslSessionTicketKey class in OpenSslSessionTicketKey.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  89f734fd_b3c8_a68b_1c02_424d27b6af40["OpenSslSessionTicketKey"]
  78dde249_6f89_0e80_54d9_1177e1653ed9["OpenSslSessionTicketKey.java"]
  89f734fd_b3c8_a68b_1c02_424d27b6af40 -->|defined in| 78dde249_6f89_0e80_54d9_1177e1653ed9
  8d5a3fe8_bf71_d0e2_4ced_d3acf53222ad["OpenSslSessionTicketKey()"]
  89f734fd_b3c8_a68b_1c02_424d27b6af40 -->|method| 8d5a3fe8_bf71_d0e2_4ced_d3acf53222ad
  24356d0d_42f1_8220_742c_254ba9b2791b["name()"]
  89f734fd_b3c8_a68b_1c02_424d27b6af40 -->|method| 24356d0d_42f1_8220_742c_254ba9b2791b
  5b84fde6_2141_0a98_0d20_2c9ccc685e0a["hmacKey()"]
  89f734fd_b3c8_a68b_1c02_424d27b6af40 -->|method| 5b84fde6_2141_0a98_0d20_2c9ccc685e0a
  263cdb50_b1d6_31a3_99e2_6a801e006f97["aesKey()"]
  89f734fd_b3c8_a68b_1c02_424d27b6af40 -->|method| 263cdb50_b1d6_31a3_99e2_6a801e006f97

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OpenSslSessionTicketKey.java lines 23–78

public final class OpenSslSessionTicketKey {

    /**
     * Size of session ticket key name
     */
    public static final int NAME_SIZE = SessionTicketKey.NAME_SIZE;
    /**
     * Size of session ticket key HMAC key
     */
    public static final int HMAC_KEY_SIZE = SessionTicketKey.HMAC_KEY_SIZE;
    /**
     * Size of session ticket key AES key
     */
    public static final int AES_KEY_SIZE = SessionTicketKey.AES_KEY_SIZE;
    /**
     * Size of session ticker key
     */
    public static final int TICKET_KEY_SIZE = SessionTicketKey.TICKET_KEY_SIZE;

    final SessionTicketKey key;

    /**
     * Construct a OpenSslSessionTicketKey.
     *
     * @param name the name of the session ticket key
     * @param hmacKey the HMAC key of the session ticket key
     * @param aesKey the AES key of the session ticket key
     */
    public OpenSslSessionTicketKey(byte[] name, byte[] hmacKey, byte[] aesKey) {
        key = new SessionTicketKey(name.clone(), hmacKey.clone(), aesKey.clone());
    }

    /**
     * Get name.
     * @return the name of the session ticket key
     */
    public byte[] name() {
        return key.getName().clone();
    }

    /**
     * Get HMAC key.
     * @return the HMAC key of the session ticket key
     */
    public byte[] hmacKey() {
        return key.getHmacKey().clone();
    }

    /**
     * Get AES Key.
     * @return the AES key of the session ticket key
     */
    public byte[] aesKey() {
        return key.getAesKey().clone();
    }
}

Frequently Asked Questions

What is the OpenSslSessionTicketKey class?
OpenSslSessionTicketKey is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSslSessionTicketKey.java.
Where is OpenSslSessionTicketKey defined?
OpenSslSessionTicketKey is defined in handler/src/main/java/io/netty/handler/ssl/OpenSslSessionTicketKey.java at line 23.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free