Table of Contents

Struct LoginServerSigningKeyData

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

Data transfer object for a LoginServer's HMAC signing key.

public struct LoginServerSigningKeyData
Inherited Members

Constructors

LoginServerSigningKeyData(long, long, byte[], DateTime)

public LoginServerSigningKeyData(long id, long loginServerId, byte[] hmacKey, DateTime timeCreated)

Parameters

id long
loginServerId long
hmacKey byte[]
timeCreated DateTime

Fields

HmacKey

HMAC signing key for token validation. 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. NOTE: The readonly modifier prevents reassignment of the field, but the underlying byte array contents are still mutable. Callers that receive this struct must not modify the array elements or the integrity of any downstream consumer that holds the same reference is compromised.

public readonly byte[] HmacKey

Field Value

byte[]

ID

Primary key of the signing key record.

public readonly long ID

Field Value

long

LoginServerId

Foreign key identifying the LoginServer that owns this key.

public readonly long LoginServerId

Field Value

long

TimeCreated

UTC timestamp of when the key was created.

public readonly DateTime TimeCreated

Field Value

DateTime