Skip to main content
Version: 2025.11

Token

Description: Represents a cryptographic token used for verifying the integrity of binary content.

Attributes

NameTypeDescription
idStrictStr
createddatetime.datetime
shaStrictStr
saltStrictStr
created_by_idOptional[StrictStr]

Methods

NameDescription
to_strReturn the string representation of the model using field aliases.
to_jsonReturn the JSON string representation of the model using field aliases.
from_jsonCreate an instance of the model from a JSON string.
to_dictReturn the dictionary representation of the model using field aliases.
from_dictCreate an instance of the model from a dictionary.
from_storage_tokenCreate a Token instance from a core istari_digital_core.Token.
compare_tokenVerify the integrity of a token against a given binary payload.
from_bytesCreate a token from a byte string and an optional salt.