Class TdApi.CheckDatabaseEncryptionKey

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

public static class TdApi.CheckDatabaseEncryptionKey
extends TdApi.Function
Checks the database encryption key for correctness. Works only when the current authorization state is authorizationStateWaitEncryptionKey.

Returns Ok

  • Field Details

    • encryptionKey

      public byte[] encryptionKey
      Encryption key to check or set up.
    • CONSTRUCTOR

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

    • CheckDatabaseEncryptionKey

      public CheckDatabaseEncryptionKey()
      Checks the database encryption key for correctness. Works only when the current authorization state is authorizationStateWaitEncryptionKey.

      Returns Ok

    • CheckDatabaseEncryptionKey

      public CheckDatabaseEncryptionKey​(byte[] encryptionKey)
      Checks the database encryption key for correctness. Works only when the current authorization state is authorizationStateWaitEncryptionKey.

      Returns Ok

      Parameters:
      encryptionKey - byte[] Encryption key to check or set up.
    • CheckDatabaseEncryptionKey

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