java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.EncryptedCredentials
- Enclosing class:
- TdApi
Contains encrypted Telegram Passport data credentials.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.byte[]
The encrypted credentials.byte[]
The decrypted data hash.byte[]
Secret for data decryption, encrypted with the service's public key. -
Constructor Summary
ConstructorDescriptionContains encrypted Telegram Passport data credentials.EncryptedCredentials
(byte[] data, byte[] hash, byte[] secret) Contains encrypted Telegram Passport data credentials.EncryptedCredentials
(DataInput input) Contains encrypted Telegram Passport data credentials. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
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
- The encrypted credentials.hash
- The decrypted data hash.secret
- Secret for data decryption, encrypted with the service's public key.
-
EncryptedCredentials
Contains encrypted Telegram Passport data credentials.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-