Table of Contents

Class ApiKeyOptions

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

Configuration options for API key management.

public sealed class ApiKeyOptions
Inheritance
ApiKeyOptions
Inherited Members

Properties

DefaultExpirationDays

Gets or sets the default expiration period in days for new keys when no explicit expiration is specified.

[Range(1, 3650)]
public int DefaultExpirationDays { get; set; }

Property Value

int

Defaults to 90 days.

KeyLengthBytes

Gets or sets the length in bytes of generated API keys.

[Range(16, 128)]
public int KeyLengthBytes { get; set; }

Property Value

int

Defaults to 32 bytes (256-bit).

MaxKeysPerPrincipal

Gets or sets the maximum number of active keys per principal.

[Range(1, 100)]
public int MaxKeysPerPrincipal { get; set; }

Property Value

int

Defaults to 10.