E2EEManager class

Constructors

E2EEManager(BaseKeyProvider _keyProvider, {bool dcEncryptionEnabled = false})

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDataChannelEncryptionEnabled → bool
no setter
keyProvider → BaseKeyProvider
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encryptData({required Uint8List data}) → Future<EncryptedPacket>
getKeyIndex(String? participantIdentity) → Future<int>
Get the key index for the encryptors of the participant. @param identity the identity of the participant, if null, use local participant. @return the key index and -1 if not found
handleEncryptedData({required Uint8List data, required Uint8List iv, required String participantIdentity, required int keyIndex}) → Future<Uint8List?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ratchetKey({String? participantId, int? keyIndex}) → Future<void>
setEnabled(bool enabled) → Future<void>
Enable/Disable frame crypto for the sender and receiver. @param enabled true to enable, false to disable if false, the frame cryptor will pass through frames and without encryption/decryption
setKeyIndex(int keyIndex, {String? participantIdentity}) → Future<void>
Sets the key index for the encryptors of the participant. @param keyIndex the key index to set @param participantIdentity the identity of the participant, if null, use local participant.
setup(Room room) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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