Package io.agora.rtm

Class RtmEncryptionConfig

java.lang.Object
io.agora.rtm.RtmEncryptionConfig

public class RtmEncryptionConfig extends Object
encryption configuration
  • Constructor Details

    • RtmEncryptionConfig

      public RtmEncryptionConfig()
      Creates a new instance of RtmEncryptionConfig with default parameters.
    • RtmEncryptionConfig

      public RtmEncryptionConfig(RtmConstants.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
  • Method Details

    • setEncryptionMode

      public void setEncryptionMode(RtmConstants.RtmEncryptionMode mode)
    • setEncryptionKey

      public void setEncryptionKey(String key)
    • setEncryptionSalt

      public void setEncryptionSalt(byte[] salt)
    • getEncryptionMode

      public int getEncryptionMode()
    • getEncryptionKey

      public String getEncryptionKey()
    • getEncryptionSalt

      public byte[] getEncryptionSalt()
    • toString

      public String toString()
      Overrides:
      toString in class Object