BloomSecureStorage class
Encrypted key-value secure storage wrapping flutter_secure_storage (iOS Keychain / Android EncryptedSharedPreferences).
Implements BloomStorageAdapter for seamless integration with BloomAuth session storage, token caching, and encrypted offline queues.
Example:
final secureStorage = BloomSecureStorage();
await secureStorage.write('access_token', 'jwt_secret_token');
final token = await secureStorage.read('access_token');
- Implemented types
Constructors
- BloomSecureStorage({FlutterSecureStorage? storage, AndroidOptions? androidOptions, IOSOptions? iosOptions})
- Creates a BloomSecureStorage adapter with platform encryption options.
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
-
clear(
) → Future< void> -
Clears all encrypted key-value entries in secure storage.
override
-
containsKey(
String key) → Future< bool> -
Checks whether an encrypted entry for
keyexists in storage.override -
delete(
String key) → Future< void> -
Deletes the encrypted entry associated with
key.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< String?> -
Reads an encrypted string value associated with
key, or returnsnullif absent.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → Future< void> -
Writes an encrypted
valuestring associated withkey.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited