EncryptionConfig class
Built-in encryption configurations.
- Annotations
-
- @JsonSerializable(explicitToJson: true, includeIfNull: false)
Properties
- datastreamEncryptionEnabled → bool?
-
Whether to enable data stream encryption: true : Enable data stream encryption. false : (Default) Disable data stream encryption.
final
- encryptionKdfSalt → Uint8List?
-
Salt, 32 bytes in length. Agora recommends that you use OpenSSL to generate salt on the server side. See Media Stream Encryption for details. This parameter takes effect only in aes128Gcm2 or aes256Gcm2 encrypted mode. In this case, ensure that this parameter is not 0.
final
- encryptionKey → String?
-
Encryption key in string type with unlimited length. Agora recommends using a 32-byte key. If you do not set an encryption key or set it as NULL, you cannot use the built-in encryption, and the SDK returns -2.
final
- encryptionMode → EncryptionMode?
-
The built-in encryption mode. See EncryptionMode. Agora recommends using aes128Gcm2 or aes256Gcm2 encrypted mode. These two modes support the use of salt for higher security.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited