- Enclosing class:
- TdApi
Changes the database encryption key.
Usually the encryption key is never
changed and is stored in some OS keychain.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
byte[]
New encryption key. -
Constructor Summary
ConstructorDescriptionChanges the database encryption key.SetDatabaseEncryptionKey
(byte[] newEncryptionKey) Changes the database encryption key. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
newEncryptionKey
public byte[] newEncryptionKeyNew 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
- 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()
-