Table of Contents

Class KeyToken

Namespace
Tlabs.Server.Model
Assembly
Tlabs.SrvBase.dll

Model class for the API Key

public class KeyToken
Inheritance
KeyToken
Inherited Members
Extension Methods

Constructors

KeyToken()

public KeyToken()

Properties

Description

Description

public string? Description { get; set; }

Property Value

string

Roles

Roles

public List<string>? Roles { get; set; }

Property Value

List<string>

TokenName

(Unique) name of the token

public string? TokenName { get; set; }

Property Value

string

ValidFrom

Valid from (inclusive)

public DateTime? ValidFrom { get; set; }

Property Value

DateTime?

ValidUntil

Valid until (exclusive)

public DateTime? ValidUntil { get; set; }

Property Value

DateTime?

ValidityState

Validity State

public string? ValidityState { get; set; }

Property Value

string

Methods

FromEntity(ApiKey)

Returns an API Key Model from the entity

public static KeyToken FromEntity(ApiKey ent)

Parameters

ent ApiKey

Returns

KeyToken