Package it.tdlight.jni
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 Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
byte[]
encryptionKey
Encryption key to check or set up. -
Constructor Summary
Constructors Constructor Description CheckDatabaseEncryptionKey()
Checks the database encryption key for correctness.CheckDatabaseEncryptionKey(byte[] encryptionKey)
Checks the database encryption key for correctness.CheckDatabaseEncryptionKey(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
encryptionKey
public byte[] encryptionKeyEncryption 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
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-