EncryptionConfig class
Built-in encryption configurations.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
EncryptionConfig({EncryptionMode? encryptionMode, String? encryptionKey, List<
int> ? encryptionKdfSalt}) - Constructs the EncryptionConfig.
Properties
-
encryptionKdfSalt
↔ List<
int> ? -
Since
v3.4.5 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.
getter/setter pair
- encryptionKey ↔ String?
-
Encryption key in string type.
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.
getter/setter pair
- 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.
getter/setter pair
- 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