TokenInfo - конструктор
An object containing information about token.
Пространство имён: Tessa.TokensСборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
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
)
Public Sub New (
token As String,
id As String,
hash As Byte(),
format As TokenFormat,
type As TokenType,
scope As TokenScope,
description As String,
created As DateTime,
expires As DateTime,
createdByID As Guid,
Optional refID As Guid? = Nothing,
Optional userID As Guid? = Nothing,
Optional options As TokenOptions = Nothing
)
public:
TokenInfo(
String^ token,
String^ id,
array<unsigned char>^ hash,
TokenFormat format,
TokenType type,
TokenScope^ scope,
String^ description,
DateTime created,
DateTime expires,
Guid createdByID,
Nullable<Guid> refID = nullptr,
Nullable<Guid> userID = nullptr,
TokenOptions^ options = nullptr
)
new :
token : string *
id : string *
hash : byte[] *
format : TokenFormat *
type : TokenType *
scope : TokenScope *
description : string *
created : DateTime *
expires : DateTime *
createdByID : Guid *
?refID : Nullable<Guid> *
?userID : Nullable<Guid> *
?options : TokenOptions
(* Defaults:
let _refID = defaultArg refID null
let _userID = defaultArg userID null
let _options = defaultArg options null
*)
-> TokenInfo
Параметры
- 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: