ApiKeyInfo
Namespace: MJCZone.DapperMatic.AspNetCore.Models.Dtos
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
An API key as it is shown: everything but its secret.
Inheritance
Implemented Interfaces:
- IEquatable
sealed public
Contents
Constructors (1) | Methods (2) | Properties (11)
Constructors
ApiKeyInfo
ApiKeyInfo()Methods
Of
Shows a key, without its secret.
ApiKeyInfo Of(DapperMaticApiKey key)Parameters
- key (DapperMaticApiKey) - The key.
Returns
Type: ApiKeyInfo
What is shown of it.
GetType
GetType()Properties
Id
The key's id.
Type: string
Name
Its name.
Type: string
Kind
Whom it signs in as.
Type: DapperMaticKeyKind
Owner
Its service account's name, or its owner's user id.
Type: string
Tenant
Its tenant, or null.
Type: string?
Limits
The most it may do.
Type: IReadOnlyList<DmPolicy>
ExpiresAt
When it stops working, or null.
Type: DateTimeOffset?
CreatedAt
When it was made.
Type: DateTimeOffset
CreatedBy
Who made it.
Type: string?
LastUsedAt
When it was last used (to within a minute), or null.
Type: DateTimeOffset?
RevokedAt
When it was revoked, or null.
Type: DateTimeOffset?