TokenInfo - конструктор

An object containing information about token.

Definition

Пространство имён: Tessa.Tokens
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public TokenInfo(
	string? token,
	string id,
	byte[] hash,
	TokenFormat format,
	TokenType type,
	TokenScope scope,
	string description,
	DateTime created,
	DateTime expires,
	Guid createdByID,
	Guid? refID = null,
	Guid? userID = null,
	TokenOptions? options = null
)

Параметры

token  String
The access token.
id  String
The access token.
hash  Byte
The hash of the token.
format  TokenFormat
Token storage format.
type  TokenType
Type of token to access the resource.
scope  TokenScope
The token scope.
description  String
A description of the token.
created  DateTime
The creation date and time of the token.
expires  DateTime
The expiration date and time of the token.
createdByID  Guid
The identifier of the employee who created the token.
refID  NullableGuid  (Optional)
The identifier of the resource for which the token was created.
userID  NullableGuid  (Optional)
The identifier of the user for whom the token was created.
options  TokenOptions  (Optional)
Additional information by the token.

Заметки

Parameters created and expires truncated due to DBMS datetime rounding at store algorithm which could lead to invalid token signatures:

См. также