TokenCredential class final
A bearer-token credential, validated against a token store. Relies on TLS for secrecy in transit.
- Inheritance
-
- Object
- Credential
- TokenCredential
Constructors
- TokenCredential({required String principal, required String token})
-
Creates a token credential for
principal.const
Properties
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