Class TdApi.SetDatabaseEncryptionKey

Enclosing class:
TdApi

public static 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
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SetDatabaseEncryptionKey

      public SetDatabaseEncryptionKey()
      Default constructor for a function, which 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)
      Creates a function, which changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.

      Returns Ok

      Parameters:
      newEncryptionKey - New encryption key.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR