Struct ConnectionTokenKeyData
Data transfer object for a connection token HMAC key. Represents a single active key used for signing/verifying stateless connection tokens between the IpFetchServer (signing) and game servers (verification).
public struct ConnectionTokenKeyData
- Inherited Members
Constructors
ConnectionTokenKeyData(long, string, byte[], bool, DateTime)
public ConnectionTokenKeyData(long id, string keyId, byte[] hmacKey, bool isActive, DateTime timeCreated)
Parameters
Fields
HmacKey
HMAC-SHA256 key material. CAUTION: byte[] is a reference type; the array is not copied on construction. Callers must not mutate the array contents after passing it to this struct.
public readonly byte[] HmacKey
Field Value
- byte[]
ID
Primary key of the record.
public readonly long ID
Field Value
IsActive
Whether this key is currently active and should be used for verification. Inactive keys are kept during rotation overlap windows.
public readonly bool IsActive
Field Value
KeyId
Logical key identifier (e.g., region code like "us-east", "eu-west"). Embedded in the connection token payload so the verifying server can select the correct HMAC key.
public readonly string KeyId
Field Value
TimeCreated
UTC timestamp when this key was first persisted.
public readonly DateTime TimeCreated