Tls13Server.buildNewSessionTicket

private ubyte[] buildNewSessionTicket()

Builds an encrypted NewSessionTicket record (RFC 8446 §4.6.1).

The ticket identity currently embeds the connection's resumption PSK verbatim. In-process session caches can use it directly, but production deployments must encrypt the PSK under a server-managed ticket key (as DTLS does via DtlsTicketKeyManager) before relying on it for resumption.

Returns

The serialized encrypted record containing the ticket message.