TokenHelper - класс

Provides utility methods for handling tokens.

Definition

Пространство имён: Tessa.Tokens
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public static class TokenHelper
Inheritance
Object    TokenHelper

Методы

AppendNotNullT Appends the specified key-value pair to the dictionary if the value is not .
CheckJwtAuthToken Verifies the provided JWT (JSON Web Token) using the specified key strategy. This method validates the token's lifetime, signature, and specific algorithm used. If the token is valid, it returns the parsed JWT token along with the corresponding public key.
HasInScope Checks whether the specified values exist within the given scope, considering extension rules if any.
MaskToken Masks the access token in the format: XXX...XXX, where XXX represents the first and last token symbols.
TruncateToSeconds Truncates dateTime to seconds.

Поля

ActionHistoryCardIDKey The key for storing the card identifier liked with the token in an action history record.
ActionHistoryCardTypeID The default card type identifier for an action history record.
ActionHistoryCardTypeName The default card type name for an action history record.
ActionHistoryDeviceKey The key for storing the device information in an action history record.
ActionHistoryMessageKey The key for storing the message (short description) in an action history record.
ActionHistoryOSKey The key for storing the operating system in an action history record.
ActionHistoryReasonKey The key for storing the token revocation reason for the action in an action history record.
ActionHistoryTokenCreatedByUserIDKey The key for storing the user identifier who created the token in an action history record.
ActionHistoryTokenCreatedKey The key for storing the token creation datetime in an action history record.
ActionHistoryTokenDescriptionKey The key for storing the token description in an action history record.
ActionHistoryTokenExpiresKey The key for storing the token expiration datetime in an action history record.
ActionHistoryTokenFormatKey The key for storing the token format in an action history record.
ActionHistoryTokenHashKey The key for storing the token hash in an action history record.
ActionHistoryTokenIDKey The key for storing the token identifier in an action history record.
ActionHistoryTokenKey The key for storing the access token in an action history record.
ActionHistoryTokenRefIDKey The key for storing an object identifier linked with the token in an action history record.
ActionHistoryTokenScopeKey The key for storing the token scope in an action history record.
ActionHistoryTokenTypeKey The key for storing the token type in an action history record.
ActionHistoryTokenUserIDKey The key for storing the user identifier associated with the token in an action history record.
ActionHistoryUserAgentKey The key for storing the user agent in an action history record.
SigningKey The key for the discovery key.

См. также