PublicKeyAuthenticator class
Authenticates PublicKeyCredentials against an AuthorizedKeysStore.
The principal proves possession of its private key by signing the
per-connection challenge nonce; the signature is verified with Ed25519 and
the (principal, publicKey) pair must be present in the store. Because the
nonce is single-use, a captured signature cannot be replayed onto a new
connection.
- Implemented types
Constructors
- PublicKeyAuthenticator(AuthorizedKeysStore store)
-
Creates a public-key authenticator backed by
store.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → AuthorizedKeysStore
-
The trust store of authorized public keys.
final
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