TokenCredential class final

A bearer-token credential, validated against a token store. Relies on TLS for secrecy in transit.

Inheritance

Constructors

TokenCredential({required String principal, required String token})
Creates a token credential for principal.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
principal String
The claimed principal identifier (the login name).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The opaque bearer token.
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