Encryption class

Constructors

Encryption({required Client client, bool debug = false})

Properties

client Client
final
crossSigning CrossSigning
latefinal
debug bool
final
enabled bool
no setter
fingerprintKey String?
no setter
hashCode int
The hash code for this object.
no setterinherited
identityKey String?
no setter
keyManager KeyManager
latefinal
keyVerificationManager KeyVerificationManager
latefinal
olmDatabase DatabaseApi?
Returns the database used to store olm sessions and the olm account. We don't want to store olm keys for dehydrated devices.
no setter
olmManager OlmManager
latefinal
ourDeviceId String
getter/setter pair
pickledOlmAccount String?
Returns the base64 encoded keys to store them in a store. This String should never leave the device!
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ssss SSSS
getter/setter pair

Methods

autovalidateMasterOwnKey() Future<void>
bootstrap({void onUpdate(Bootstrap)?}) Bootstrap
decryptRoomEvent(String roomId, Event event, {bool store = false, EventUpdateType updateType = EventUpdateType.timeline}) Future<Event>
decryptRoomEventSync(String roomId, Event event) Event
decryptToDeviceEvent(ToDeviceEvent event) Future<ToDeviceEvent>
dispose() Future<void>
encryptGroupMessagePayload(String roomId, Map<String, dynamic> payload, {String type = EventTypes.Message}) Future<Map<String, dynamic>>
Encrypts the given json payload and creates a send-ready m.room.encrypted payload. This will create a new outgoingGroupSession if necessary.
encryptToDeviceMessage(List<DeviceKeys> deviceKeys, String type, Map<String, dynamic> payload) Future<Map<String, Map<String, Map<String, dynamic>>>>
handleDeviceOneTimeKeysCount(Map<String, int>? countJson, List<String>? unusedFallbackKeyTypes) → void
handleEventUpdate(EventUpdate update) Future<void>
handleToDeviceEvent(ToDeviceEvent event) Future<void>
init(String? olmAccount, {String? deviceId, String? pickleKey, String? dehydratedDeviceAlgorithm}) Future<void>
isMinOlmVersion(int major, int minor, int patch) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSync() → void
toString() String
A string representation of this object.
inherited

Operators

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