Module tdlight.api

Class TdApi.EncryptedCredentials

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.EncryptedCredentials
Enclosing class:
TdApi

public static final class TdApi.EncryptedCredentials extends TdApi.Object
Contains encrypted Telegram Passport data credentials.
  • Field Details

    • data

      public byte[] data
      The encrypted credentials.
    • hash

      public byte[] hash
      The decrypted data hash.
    • secret

      public byte[] secret
      Secret for data decryption, encrypted with the service's public key.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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

      public EncryptedCredentials(DataInput input) throws IOException
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object