类 | |
enum | EncryptionMode |
Public 属性 | |
EncryptionMode | encryptionMode |
final byte[] | encryptionKdfSalt = new byte[32] |
String | encryptionKey |
配置内置加密方案。
EncryptionMode io.agora.rtc.internal.EncryptionConfig.encryptionMode |
内置加密模式,默认为 AES_128_GCM2
加密模式。详见 EncryptionMode
。
final byte [] io.agora.rtc.internal.EncryptionConfig.encryptionKdfSalt = new byte[32] |
盐,长度为 32 字节。声网推荐你在服务端使用 OpenSSL 生成盐,详见《媒体流加密》。
AES_128_GCM2
或 AES_256_GCM2
加密模式下,该参数才生效。此时,需确保填入该参数的值不全为 0
。 String io.agora.rtc.internal.EncryptionConfig.encryptionKey |
内置加密密钥,字符串类型,长度无限制。声网推荐使用 32 字节的密钥。
ERR_INVALID_ARGUMENT(-2)
。