Class IssuedApiKey
- Namespace
- Stratara.Abstractions.ApiKeys
- Assembly
- Stratara.Abstractions.dll
The one-time issuance result: the raw secret plus the stored descriptor. The raw key is shown exactly once here and never persisted — display it to the caller immediately; it cannot be recovered afterwards.
[ExcludeFromCodeCoverage]
public sealed record IssuedApiKey : IEquatable<IssuedApiKey>
- Inheritance
-
IssuedApiKey
- Implements
- Inherited Members
- Extension Methods
Constructors
IssuedApiKey(string, ApiKeyDescriptor)
The one-time issuance result: the raw secret plus the stored descriptor. The raw key is shown exactly once here and never persisted — display it to the caller immediately; it cannot be recovered afterwards.
public IssuedApiKey(string RawKey, ApiKeyDescriptor Descriptor)
Parameters
RawKeystringThe plaintext API key (secret; hand to the caller once).
DescriptorApiKeyDescriptorThe stored, non-secret description of the key.
Properties
Descriptor
The stored, non-secret description of the key.
public ApiKeyDescriptor Descriptor { get; init; }
Property Value
RawKey
The plaintext API key (secret; hand to the caller once).
public string RawKey { get; init; }