SSSS class

Constructors

SSSS(Encryption encryption)

Properties

client Client
no setter
defaultKeyId String?
no setter
encryption Encryption
final
hashCode int
The hash code for this object.
no setterinherited
onSecretStored → CachedStreamController<String>
Will be called when a new secret has been stored in the database
final
pendingShareRequests Map<String, _ShareRequest>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkKey(Uint8List key, SecretStorageKeyContent info) Future<bool>
clearCache() Future<void>
createKey([String? passphrase]) Future<OpenSSSS>
Creates a new secret storage key, optional encrypts it with passphrase and stores it in the user's accountData.
getCached(String type) Future<String?>
getKey(String keyId) SecretStorageKeyContent?
getStored(String type, String keyId, Uint8List key) Future<String>
handleToDeviceEvent(ToDeviceEvent event) Future<void>
isKeyValid(String keyId) bool
isSecret(String type) bool
keyIdFromType(String type) String?
keyIdsFromType(String type) Set<String>?
maybeCacheAll(String keyId, Uint8List key) Future<void>
maybeRequestAll([List<DeviceKeys>? devices]) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open([String? identifier]) OpenSSSS
periodicallyRequestMissingCache() Future<void>
request(String type, [List<DeviceKeys>? devices]) Future<void>
setCacheCallback(String type, FutureOr<void> callback(String)) → void
setDefaultKeyId(String keyId) Future<void>
setValidator(String type, FutureOr<bool> validator(String)) → void
store(String type, String secret, String keyId, Uint8List key, {bool add = false}) Future<void>
toString() String
A string representation of this object.
inherited
validateAndStripOtherKeys(String type, String secret, String keyId, Uint8List key) Future<void>

Operators

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