Class ApiKeyRecord
Represents a stored API key with associated metadata.
The stores HMAC-SHA256(key) — the raw key is NEVER persisted.
public sealed record ApiKeyRecord : IEquatable<ApiKeyRecord>
Inheritance
Implements
Properties
Id
Unique identifier for this key (for revocation / listing).
public required string Id { get; init; }
KeyHash
HMAC-SHA256 hash of the API key. Raw key is never stored.
public required string KeyHash { get; init; }