Interface ClientAuthorizationState
- All Known Implementing Classes:
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 Summary
Modifier and TypeMethodDescriptionvoid
Sends an authentication code to the TDLib for check.void
checkAuthenticationPassword
(String password) Sends a password to the TDLib for check.void
checkEmailAddress
(String email) Sends an email to the TDLib for check.boolean
boolean
All databases are closed and all resources are released.boolean
boolean
boolean
-
Method Details
-
checkAuthenticationCode
Sends an authentication code to the TDLib for check.- Parameters:
code
- authentication code received from another logged in client/SMS/email
-
checkAuthenticationPassword
Sends a password to the TDLib for check.- Parameters:
password
- two-step verification password
-
checkEmailAddress
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
-