Class ApiKey
Entity class for an API Key
public class ApiKey : EditableEntity
- Inheritance
-
ApiKey
- Inherited Members
- Extension Methods
Constructors
ApiKey()
public ApiKey()
Properties
Description
Description
public string? Description { get; set; }
Property Value
Hash
Hashed API Key
public string? Hash { get; set; }
Property Value
Roles
Associated roles
public List<ApiKey.RoleRef>? Roles { get; set; }
Property Value
TokenName
Unique token name
public string? TokenName { get; set; }
Property Value
ValidFrom
Valid from (inclusive)
public DateTime ValidFrom { get; set; }
Property Value
ValidUntil
Valid until (exclusive), unlimited if null
public DateTime? ValidUntil { get; set; }
Property Value
ValidityState
Current validity status (informational).
public string ValidityState { get; set; }
Property Value
Remarks
After limiting the validity by setting ValidUntil to e.g. NOW, the status could also be set to 'deleted'.