Class ApiKeyRecord
Metadata for an API key.
public sealed class ApiKeyRecord
- Inheritance
-
ApiKeyRecord
- Inherited Members
Properties
CreatedAt
public DateTimeOffset CreatedAt { get; init; }
Property Value
ExpiresAt
public DateTimeOffset? ExpiresAt { get; init; }
Property Value
IsExpired
Whether this key has passed its expiry date.
public bool IsExpired { get; }
Property Value
IsRevoked
public bool IsRevoked { get; set; }
Property Value
Key
public required string Key { get; init; }
Property Value
LastUsedAt
When the key was last used for authentication.
public DateTimeOffset? LastUsedAt { get; set; }
Property Value
Name
public required string Name { get; init; }
Property Value
PreviousKey
public string? PreviousKey { get; init; }
Property Value
RevokedAt
public DateTimeOffset? RevokedAt { get; set; }
Property Value
Role
public GatewayRole Role { get; init; }
Property Value
UsageCount
Number of times this key has been used for authentication.
public long UsageCount { get; set; }