Token class

The Token class represents a token with a string value, origin information, an expiration date, tokenRLM, clientId and optional customId.

Constructors

Token({required String tokenString, required TokenOrigin origin, required DateTime expirationDate, required String rlm, String? clientId, String? customId})
Token.fromMap(Map map)
Token.fromMap(Map map) is a named constructor that creates a new instance of the Token class from a Map object. It takes a Map object as an argument and uses its values to initialize the properties of the Token object.

Properties

clientId → String?
final
customId → String?
final
expirationDate → DateTime
final
hashCode → int
The hash code for this object.
no setterinherited
origin → TokenOrigin
final
rlm → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenString → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited