struct

Beryl::TLS::SessionTicket

Inherits Struct < Value < Object

A ticket a client holds for one server name, with the verifier that checked the server it came from: a ticket is offered only by a context that verifies the same way, so a ticket from an unverified connection never stands in for a verified one.

Constructors

new(server_name : String, cipher_suite : CipherSuite, resumption_pre_shared_key : Bytes, ticket : Bytes, ticket_age_add : UInt32, received_at : Time::Instant, lifetime : Time::Span, alpn_protocol : String | Nil, certificate_verifier : CertificateVerifier)
Source

Instance methods

alpn_protocol
certificate_verifier
cipher_suite
clone
Source
copy_with(server_name _server_name = @server_name, cipher_suite _cipher_suite = @cipher_suite, resumption_pre_shared_key _resumption_pre_shared_key = @resumption_pre_shared_key, ticket _ticket = @ticket, ticket_age_add _ticket_age_add = @ticket_age_add, received_at _received_at = @received_at, lifetime _lifetime = @lifetime, alpn_protocol _alpn_protocol = @alpn_protocol, certificate_verifier _certificate_verifier = @certificate_verifier)
Source
lifetime
obfuscated_age(now : Time::Instant) : UInt32

The obfuscated ticket age (ยง4.2.11.1).

Source
received_at
resumption_pre_shared_key
server_name
ticket
ticket_age_add
usable_at?(now : Time::Instant) : Bool

Returns whether the ticket is still within its lifetime.

Source