CompositeAuthenticator class
Combines several Authenticators, trying each in order until one succeeds.
Lets the Hub accept both public-key and token credentials: wrap a PublicKeyAuthenticator and a TokenAuthenticator. Each delegate rejects credential types it does not handle; the composite returns the first success and otherwise fails closed with an AuthException.
- Implemented types
Constructors
-
CompositeAuthenticator(List<
Authenticator> delegates) -
Creates a composite over
delegates(tried in order).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authenticate(
Credential credential, {required Uint8List challenge}) → Future< Principal> -
Authenticates
credential, returning the resolved Principal.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