Feature notes: Asynchronous QUIC server and HTTP/3 component
inherits from Exception
(no public members)
One instance belongs to one listener activation. Calls require external serialization. The secret is copied independently and wiped on destruction; callers must supply at least 32 unpredictable bytes. Token ages use one monotone microsecond clock; a future issue time is invalid.
Retry tokens authenticate the complete peer endpoint, wire version, original destination ID and Retry source ID. ValidateRetry publishes no original ID until every authentication and binding check succeeds. Connection IDs contain twelve caller-supplied unpredictable bytes and a four-byte keyed tag, allowing a bounded stateless reset for unknown IDs. Token, connection-ID and reset MACs use distinct domains.
constructor Create(const aSecret: TBytes; aTokenLifetimeMicros: UInt64);
destructor Destroy; override;
function IssueRetry(aVersion: Cardinal; const aPeer: tSocketAddress; const aOriginalID, aRetryID: TBytes; aNow: UInt64): TBytes;
function ValidateRetry(aVersion: Cardinal; const aPeer: tSocketAddress; const aCurrentDestinationID, aToken: TBytes; aNow: UInt64; out aOriginalID: TBytes): Boolean;
function NewConnectionID(const aRandom: TBytes): TBytes;
function IsServerConnectionID(const aConnectionID: TBytes): Boolean;
function ResetToken(const aConnectionID: TBytes): TBytes;