Module tdlight.api

Class TdApi.CheckAuthenticationPassword

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.CheckAuthenticationPassword
Enclosing class:
TdApi

public static final class TdApi.CheckAuthenticationPassword extends TdApi.Function<TdApi.Ok>
Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword.

Returns Ok

  • Field Details

    • password

      public String password
      The 2-step verification password to check.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • CheckAuthenticationPassword

      public CheckAuthenticationPassword()
      Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword.

      Returns Ok

    • CheckAuthenticationPassword

      public CheckAuthenticationPassword(String password)
      Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword.

      Returns Ok

      Parameters:
      password - The 2-step verification password to check.

      Returns Ok

    • CheckAuthenticationPassword

      public CheckAuthenticationPassword(DataInput input) throws IOException
      Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword.

      Returns Ok

      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