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
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
nullwhen 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