SharedKeyRepository class

Constructors

SharedKeyRepository(Database _database)

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

deleteAllKeys() Future<void>
Delete all shared keys from the database and clear the cache
deleteKey(String userId) Future<void>
Delete a shared key by user ID
getAllKeys({String? password}) Future<Map<String, String>>
Retrieve all keys, decrypt them, and populate the cache
getKey(String userId, {String? password}) Future<String?>
Retrieve and decrypt the shared key for a specific user
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upsertKey(String userId, String sharedKey, {String? password}) Future<void>
Store or update an encrypted shared key for a user

Operators

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

Static Methods

getInstance() Future<SharedKeyRepository>

Constants

columnSharedKey → const String
columnUserId → const String
tableSharedKeys → const String