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
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
Methods
Failure(string)
Creates a failed result.
public static SigningKeyKekProvider.KekLoadResult Failure(string error)
Parameters
errorstring
Returns
Ok(byte[])
Creates a successful result.
public static SigningKeyKekProvider.KekLoadResult Ok(byte[] kek)
Parameters
kekbyte[]