Package it.tdlight.jni
Class TdApi.SetDatabaseEncryptionKey
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetDatabaseEncryptionKey
- Enclosing class:
- TdApi
public static class TdApi.SetDatabaseEncryptionKey extends TdApi.Function
Changes the database encryption key.
Usually the encryption key is never
changed and is stored in some OS keychain.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
byte[]
newEncryptionKey
New encryption key. -
Constructor Summary
Constructors Constructor Description SetDatabaseEncryptionKey()
Changes the database encryption key.SetDatabaseEncryptionKey(byte[] newEncryptionKey)
Changes the database encryption key.SetDatabaseEncryptionKey(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
-
newEncryptionKey
public byte[] newEncryptionKeyNew encryption key. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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()
-