Agora Java API Reference for Android
Public Attributes | List of all members
agora::rtc::EncryptionConfig Struct Reference

#include <AgoraBase.h>

Public Attributes

ENCRYPTION_MODE encryptionMode
 
const char * encryptionKey
 
uint8_t encryptionKdfSalt [32]
 

Detailed Description

Configurations of the built-in encryption schemas.

Member Data Documentation

◆ encryptionMode

ENCRYPTION_MODE agora::rtc::EncryptionConfig::encryptionMode

The encryption mode. The default encryption mode is AES_128_GCM2. See #ENCRYPTION_MODE.

◆ encryptionKey

const char* agora::rtc::EncryptionConfig::encryptionKey

The encryption key in the string format.

Note
If you do not set an encryption key or set it as NULL, you cannot use the built-in encryption, and the SDK returns #ERR_INVALID_ARGUMENT (-2).