TokenRequest class
Contains the properties of a request for a token to Ably. Tokens are generated using Auth.requestToken.
- Annotations
Constructors
-
TokenRequest.fromMap(Map<
String, dynamic> map) -
A static factory method to create a TokenRequest object from a
deserialized
TokenRequest
-like object or a JSON stringifiedTokenRequest
object.
Properties
- capability → String?
-
Capability of the requested Ably Token. If the Ably
TokenRequest
is successful, the capability of the returned Ably Token will be the intersection of this capability with the capability of the issuing key.final - clientId → String?
-
The client ID to associate with the requested Ably Token.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyName → String?
-
The name of the key against which this request is made.
final
- mac → String?
-
The Message Authentication Code for this request.
final
- nonce → String?
-
A cryptographically secure random string of at least 16 characters, used
to ensure the
TokenRequest
cannot be reused.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime?
-
The DateTime of this request.
final
- ttl → int?
-
Requested time to live for the Ably Token in milliseconds.
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