EncryptionConfig
- Flutter
更新时间不可用
配置内置加密模式和密钥。
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class EncryptionConfig {
const EncryptionConfig(
{this.encryptionMode,
this.encryptionKey,
this.encryptionKdfSalt,
this.datastreamEncryptionEnabled});
@JsonKey(name: 'encryptionMode')
final EncryptionMode? encryptionMode;
@JsonKey(name: 'encryptionKey')
final String? encryptionKey;
@JsonKey(name: 'encryptionKdfSalt', ignore: true)
final Uint8List? encryptionKdfSalt;
@JsonKey(name: 'datastreamEncryptionEnabled')
final bool? datastreamEncryptionEnabled;
factory EncryptionConfig.fromJson(Map<String, dynamic> json) =>
_$EncryptionConfigFromJson(json);
Map<String, dynamic> toJson() => _$EncryptionConfigToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
encryptionMode | 内置加密模式。详见 EncryptionMode。建议使用 |
encryptionKey | |
encryptionKdfSalt | |
datastreamEncryptionEnabled |