Table of Contents

Class ApiKey

Namespace
Tlabs.Data.Entity
Assembly
Tlabs.Data.dll

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

string

Hash

Hashed API Key

public string? Hash { get; set; }

Property Value

string

Roles

Associated roles

public List<ApiKey.RoleRef>? Roles { get; set; }

Property Value

List<ApiKey.RoleRef>

TokenName

Unique token name

public string? TokenName { get; set; }

Property Value

string

ValidFrom

Valid from (inclusive)

public DateTime ValidFrom { get; set; }

Property Value

DateTime

ValidUntil

Valid until (exclusive), unlimited if null

public DateTime? ValidUntil { get; set; }

Property Value

DateTime?

ValidityState

Current validity status (informational).

public string ValidityState { get; set; }

Property Value

string

Remarks

After limiting the validity by setting ValidUntil to e.g. NOW, the status could also be set to 'deleted'.