FakeTokenStore class

In-memory TokenStoreInterface implementation for testing.

All data is stored in a simple map and is not persisted across test runs.

Implemented types

Constructors

FakeTokenStore()

Properties

data → Map<String, String>
Access the internal data map for test assertions.
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

containsKey(String key) → Future<bool>
Check if a key exists in the store.
override
delete(String key) → Future<void>
Delete a single stored value.
override
deleteAll() → Future<void>
Delete all values managed by this store.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Clear all stored data.
retrieve(String key) → Future<String?>
Retrieve a stored value, or null if not found.
override
store(String key, String value) → Future<void>
Store a value securely under the given key.
override
toString() → String
A string representation of this object.
inherited

Operators

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