GrantRepository class abstract

Persists the credentials the Hub has issued.

Grants carry a token hash, never a token — see Grant — so this store can be a plain file on disk without being a list of passwords.

Implementers

Constructors

GrantRepository()

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

all() Future<List<Grant>>
Every issued grant.
delete(String id) Future<bool>
Revokes the grant with id; returns true if one was removed.
find(String id) Future<Grant?>
The grant with id, or null.
findByTokenHash(String tokenHash) Future<Grant?>
The grant whose token hashes to tokenHash, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(Grant grant) Future<void>
Inserts or replaces grant.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited