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
KeyIdstringThe unique identifier for the key.
ApiKeystringThe plaintext API key (returned only at creation/rotation).
ExpiresAtDateTimeOffsetWhen the key expires.
Properties
ApiKey
The plaintext API key (returned only at creation/rotation).
public string ApiKey { get; init; }
Property Value
ExpiresAt
When the key expires.
public DateTimeOffset ExpiresAt { get; init; }
Property Value
KeyId
The unique identifier for the key.
public string KeyId { get; init; }