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.
Constructors
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, ornull. -
findByTokenHash(
String tokenHash) → Future< Grant?> -
The grant whose token hashes to
tokenHash, ornull. -
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