Table of Contents

Method IsUsableIdentifier

Namespace
MailFathom.Common.ClientAssertions
Assembly
MailFathom.Common.dll

IsUsableIdentifier(string?)

Reports whether a replay identifier is one this deployment can accept and record.

public static bool IsUsableIdentifier(string? identifier)

Parameters

identifier string

The jti the client put in the assertion, which may be absent.

Returns

bool

true when the identifier may be spent; false when the assertion carrying it is refused.

Remarks

The identifier is the one value a client chooses that reaches a column, so it is bounded here rather than at each verifier: a control character is legal in the JSON a client signs and is not legal in a PostgreSQL text value, so an identifier carrying one would leave the endpoint as a provider failure where the contract promises the same empty refusal every other unacceptable claim gets. Nothing legitimate carries one — the shape this endpoint mints and expects is a random value in an ASCII encoding.