Server Gateway SDK v3.7.200.21 for Linux Java
|
Public Member Functions | |
EncryptionConfig () | |
EncryptionConfig (int encryptionMode, java.lang.String encryptionKey, byte[] encryptionKdfSalt) | |
int | getEncryptionMode () |
void | setEncryptionMode (int encryptionMode) |
java.lang.String | getEncryptionKey () |
void | setEncryptionKey (java.lang.String encryptionKey) |
byte[] | getEncryptionKdfSalt () |
void | setEncryptionKdfSalt (byte[] encryptionKdfSalt) |
The EncryptionConfig
class.
io.agora.rtc.EncryptionConfig.EncryptionConfig | ( | ) |
io.agora.rtc.EncryptionConfig.EncryptionConfig | ( | int | encryptionMode, |
java.lang.String | encryptionKey, | ||
byte[] | encryptionKdfSalt | ||
) |
Constructor.
encryptionMode | Encryption mode. The default encryption mode is ENCRYPTION_MODE_AES_128_GCM2 .
|
encryptionKey | Encryption key in string type with unlimited length. Agora recommends using a 32-byte key. |
encryptionKdfSalt | The salt with the length of 32 bytes. Agora recommends using OpenSSL to generate the salt on your server. This parameter is only valid when you set the encryption mode as AES_128_GCM2 or AES_256_GCM2 . In this case, ensure that this parameter is not 0. |
byte[] io.agora.rtc.EncryptionConfig.getEncryptionKdfSalt | ( | ) |
java.lang.String io.agora.rtc.EncryptionConfig.getEncryptionKey | ( | ) |
int io.agora.rtc.EncryptionConfig.getEncryptionMode | ( | ) |
void io.agora.rtc.EncryptionConfig.setEncryptionKdfSalt | ( | byte[] | encryptionKdfSalt | ) |
void io.agora.rtc.EncryptionConfig.setEncryptionKey | ( | java.lang.String | encryptionKey | ) |
void io.agora.rtc.EncryptionConfig.setEncryptionMode | ( | int | encryptionMode | ) |