Class 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 Detail

      • encryptionKey

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

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckDatabaseEncryptionKey

        public CheckDatabaseEncryptionKey()
        Default constructor for a function, which checks the database encryption key for correctness. Works only when the current authorization state is authorizationStateWaitEncryptionKey.

        Returns Ok

      • CheckDatabaseEncryptionKey

        public CheckDatabaseEncryptionKey​(byte[] encryptionKey)
        Creates a function, which checks the database encryption key for correctness. Works only when the current authorization state is authorizationStateWaitEncryptionKey.

        Returns Ok

        Parameters:
        encryptionKey - Encryption key to check or set up.