Package it.tdlight.jni
Class TdApi.EncryptedCredentials
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.EncryptedCredentials
- Enclosing class:
- TdApi
public static class TdApi.EncryptedCredentials extends TdApi.Object
Contains encrypted Telegram Passport data credentials.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
byte[]
data
The encrypted credentials.byte[]
hash
The decrypted data hash.byte[]
secret
Secret for data decryption, encrypted with the service's public key. -
Constructor Summary
Constructors Constructor Description EncryptedCredentials()
Contains encrypted Telegram Passport data credentials.EncryptedCredentials(byte[] data, byte[] hash, byte[] secret)
Contains encrypted Telegram Passport data credentials.EncryptedCredentials(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
data
public byte[] dataThe encrypted credentials. -
hash
public byte[] hashThe decrypted data hash. -
secret
public byte[] secretSecret for data decryption, encrypted with the service's public key. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
EncryptedCredentials
public EncryptedCredentials()Contains encrypted Telegram Passport data credentials. -
EncryptedCredentials
public EncryptedCredentials(byte[] data, byte[] hash, byte[] secret)Contains encrypted Telegram Passport data credentials.- Parameters:
data
- byte[] The encrypted credentials.hash
- byte[] The decrypted data hash.secret
- byte[] Secret for data decryption, encrypted with the service's public key.
-
EncryptedCredentials
- 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()
-