Table of Contents

Class ApiKeyCreationResult

Namespace
Excalibur.A3.Governance.NonHumanIdentity
Assembly
Excalibur.A3.Governance.Abstractions.dll

Result of creating or rotating an API key. Contains the plaintext key which is only returned once -- subsequent access returns metadata only.

public sealed record ApiKeyCreationResult : IEquatable<ApiKeyCreationResult>
Inheritance
ApiKeyCreationResult
Implements
Inherited Members

Constructors

ApiKeyCreationResult(string, string, DateTimeOffset)

Result of creating or rotating an API key. Contains the plaintext key which is only returned once -- subsequent access returns metadata only.

public ApiKeyCreationResult(string KeyId, string ApiKey, DateTimeOffset ExpiresAt)

Parameters

KeyId string

The unique identifier for the key.

ApiKey string

The plaintext API key (returned only at creation/rotation).

ExpiresAt DateTimeOffset

When the key expires.

Properties

ApiKey

The plaintext API key (returned only at creation/rotation).

public string ApiKey { get; init; }

Property Value

string

ExpiresAt

When the key expires.

public DateTimeOffset ExpiresAt { get; init; }

Property Value

DateTimeOffset

KeyId

The unique identifier for the key.

public string KeyId { get; init; }

Property Value

string