Class TdApi.SetDatabaseEncryptionKey

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetDatabaseEncryptionKey
Enclosing class:
TdApi

public static class TdApi.SetDatabaseEncryptionKey
extends TdApi.Function
Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.

Returns Ok

  • Field Details

    • newEncryptionKey

      public byte[] newEncryptionKey
      New encryption key.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • SetDatabaseEncryptionKey

      public SetDatabaseEncryptionKey()
      Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.

      Returns Ok

    • SetDatabaseEncryptionKey

      public SetDatabaseEncryptionKey​(byte[] newEncryptionKey)
      Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.

      Returns Ok

      Parameters:
      newEncryptionKey - byte[] New encryption key.
    • SetDatabaseEncryptionKey

      public SetDatabaseEncryptionKey​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details