Agora Java API Reference for Android

Public Member Functions | List of all members
io.agora.rtm.RtmEncryptionConfig Class Reference

## Public Member Functions
| RtmEncryptionConfig ()
| RtmEncryptionConfig (RtmEncryptionMode mode, String key, byte[] salt)
void | setEncryptionMode (RtmEncryptionMode mode)
void | setEncryptionKey (String key)
void | setEncryptionSalt (byte[] salt)
int | getEncryptionMode ()
String | getEncryptionKey ()
byte[] | getEncryptionSalt ()
String | toString ()

## Detailed Description

encryption configuration

## Constructor & Destructor Documentation

## ◆ RtmEncryptionConfig() [1/2]

io.agora.rtm.RtmEncryptionConfig.RtmEncryptionConfig | ( |  | ) |

Creates a new instance of

RtmEncryptionConfig

with default parameters.

## ◆ RtmEncryptionConfig() [2/2]

io.agora.rtm.RtmEncryptionConfig.RtmEncryptionConfig | ( | RtmEncryptionMode | mode,
|  | String | key,
|  | byte[] | salt
| ) |  |

Creates a new instance of

RtmEncryptionConfig

with specifies parameters.

Parameters

  mode | The encryption mode
  key | The encryption key
  salt | The encryption salt

io.agora.rtm.RtmEncryptionConfig.RtmEncryptionConfig
RtmEncryptionConfig()
Definition: RtmEncryptionConfig.java:29