TokenCredentialProvider class

A CredentialProvider that presents a bearer token.

Implemented types

Constructors

TokenCredentialProvider({required String principal, required String token})
Creates a token provider.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
principal String
The principal (login name) this provider authenticates as.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The bearer token.
final

Methods

createAuthRequest(String nonce) Future<AuthRequest>
Builds an AuthRequest answering the challenge nonce.
override
identityPublicKeyBytes() Future<Uint8List?>
The raw public-key bytes that cryptographically bind this identity, used as the strongest input to the node UID. Returns null when the credential has no key (e.g. a bearer token), in which case the UID falls back to hardware and platform attributes alone.
override
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