CredentialProvider class abstract

Produces the AuthRequest a node or client sends in response to the Hub's challenge hello.

Implementations encapsulate how the peer proves its identity (a bearer token or an Ed25519 signature over the connection nonce), so the runtimes stay independent of the credential type.

Implementers

Constructors

CredentialProvider()

Properties

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

Methods

createAuthRequest(String nonce) Future<AuthRequest>
Builds an AuthRequest answering the challenge nonce.
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.
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