Dtls13Server.sendNewSessionTicket

bool sendNewSessionTicket(DtlsTicketKeyManager ticketKeyMgr)

Builds, encrypts, and sends a NewSessionTicket to the client.

Should be called after the handshake has completed. Derives the resumption PSK, encrypts it into a ticket, wraps it in an encrypted DTLS record, and sends it via the transport.

Parameters

ticketKeyMgrTicket encryption key manager.

Returns

true if a NewSessionTicket was sent, false if resumption is

disabled or no ticket key manager is available.