InMemoryOAuthClientStore class
In-memory OAuth client store for tests and development.
- Implemented types
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
-
create(
OAuthClient client) → Future< OAuthClient> -
Stores
client, throwing StateError when its ID already exists.override -
delete(
String clientId) → Future< void> -
Deletes
clientIdafter trimming it; missing IDs are ignored.override -
findById(
String clientId) → Future< OAuthClient?> -
Looks up
clientIdafter trimming it; returns null when absent.override -
listAll(
) → Future< List< OAuthClient> > -
Returns an unmodifiable snapshot of all registered clients.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
OAuthClient client) → Future< OAuthClient> -
Replaces an existing client, throwing StateError when it is absent.
override
-
validateSecret(
String clientId, String secret) → Future< bool> -
Validates
secretagainst the stored SHA-256 digest in constant time.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited