AuthorizedKeysStore class

An in-memory authorized_keys-style trust store consulted by PublicKeyAuthenticator.

Entries can be added programmatically or parsed from a simple text format, one entry per line:

# principal  base64-ed25519-key  role1,role2  Display Name
alice        AAAA...==           admin        Alice Example

Blank lines and lines beginning with # are ignored.

Constructors

AuthorizedKeysStore([List<AuthorizedKey>? entries])
Creates a store from existing entries.
AuthorizedKeysStore.parse(String text)
Parses an AuthorizedKeysStore from the line-based text format.
factory

Properties

entries List<AuthorizedKey>
All entries (unmodifiable view).
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(AuthorizedKey entry) → void
Adds an entry to the store.
find(String principal, Ed25519PublicKey publicKey) AuthorizedKey?
Returns the entry matching both principal and publicKey, or null if the pair is not authorized.
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