Table of Contents

Struct SigningKeyKekProvider.KekLoadResult

Namespace
FishMMO.Server.Implementation
Assembly
FishMMO.Server.dll

Outcome of a KEK load. Kek is non-null only when Success is true; otherwise Error explains why, for fail-closed callers.

public readonly struct SigningKeyKekProvider.KekLoadResult
Inherited Members

Properties

Error

Failure reason, or null on success.

public string Error { get; }

Property Value

string

Kek

The loaded KEK, or null on failure.

public byte[] Kek { get; }

Property Value

byte[]

Success

Whether a valid 32-byte KEK was loaded.

public bool Success { get; }

Property Value

bool

Methods

Failure(string)

Creates a failed result.

public static SigningKeyKekProvider.KekLoadResult Failure(string error)

Parameters

error string

Returns

SigningKeyKekProvider.KekLoadResult

Ok(byte[])

Creates a successful result.

public static SigningKeyKekProvider.KekLoadResult Ok(byte[] kek)

Parameters

kek byte[]

Returns

SigningKeyKekProvider.KekLoadResult