Interface ClientAuthorizationState

All Known Implementing Classes:
ClientAuthorizationStateImpl

public sealed interface ClientAuthorizationState permits ClientAuthorizationStateImpl
Authorization state of the client. Used for client authorization when TdApi.UpdateAuthorizationState notification received from TDLib. Check functions will not take effect after `UpdateAuthorizationState` have been processed.
Author:
Pavel Vorobyev
  • Method Details

    • checkAuthenticationCode

      void checkAuthenticationCode(String code)
      Sends an authentication code to the TDLib for check.
      Parameters:
      code - authentication code received from another logged in client/SMS/email
    • checkAuthenticationPassword

      void checkAuthenticationPassword(String password)
      Sends a password to the TDLib for check.
      Parameters:
      password - two-step verification password
    • checkEmailAddress

      void checkEmailAddress(String email)
      Sends an email to the TDLib for check.
      Parameters:
      email - address
    • isWaitAuthenticationCode

      boolean isWaitAuthenticationCode()
      Returns:
      authentication sate awaiting authentication code
    • isWaitAuthenticationPassword

      boolean isWaitAuthenticationPassword()
      Returns:
      authentication sate awaiting two-step verification password
    • isWaitEmailAddress

      boolean isWaitEmailAddress()
      Returns:
      authentication sate awaiting email address
    • haveAuthorization

      boolean haveAuthorization()
      Returns:
      authorization status
    • isStateClosed

      boolean isStateClosed()
      All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to with error code 500.
      Returns:
      is TDLib client in its final state