Module tdlight.api

Class TdApi.SetDatabaseEncryptionKey

Enclosing class:
TdApi

public static final class TdApi.SetDatabaseEncryptionKey extends TdApi.Function<TdApi.Ok>
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:
  • 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
      Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.

      Returns Ok

      Throws:
      IOException
  • Method Details