Table of Contents

Struct ConnectionTokenKeyData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

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

id long
keyId string
hmacKey byte[]
isActive bool
timeCreated DateTime

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

long

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

bool

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

string

TimeCreated

UTC timestamp when this key was first persisted.

public readonly DateTime TimeCreated

Field Value

DateTime