SSSS class
SSSS: Secure Secret Storage and Sharing Read more about SSSS at: https://matrix.org/docs/guides/implementing-more-advanced-e-2-ee-features-such-as-cross-signing#3-implementing-ssss
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
- 
  
  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 passphraseand stores it in the user'saccountData.
- 
  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
Static Methods
- 
  decodeRecoveryKey(String recoveryKey) → Uint8List 
- 
  decryptAes(EncryptedContent data, Uint8List key, String name) → Future< String> 
- 
  deriveKeys(Uint8List key, String name) → DerivedKeys 
- 
  encodeRecoveryKey(Uint8List recoveryKey) → String 
- 
  encryptAes(String data, Uint8List key, String name, [String? ivStr]) → Future< EncryptedContent> 
- 
  keyFromPassphrase(String passphrase, PassphraseInfo info) → Future< Uint8List>