Package org.drinkless.tdlib
Class TdApi.CheckAuthenticationPasskey
- Enclosing class:
- TdApi
Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]Authenticator data of the application that created the credential.JSON-encoded client data.static final intIdentifier uniquely determining type of the object.Base64url-encoded identifier of the credential.byte[]Cryptographic signature of the credential.byte[]User handle of the passkey. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which checks a passkey to log in to the corresponding account.CheckAuthenticationPasskey(String credentialId, String clientData, byte[] authenticatorData, byte[] signature, byte[] userHandle) Creates a function, which checks a passkey to log in to the corresponding account. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
credentialId
Base64url-encoded identifier of the credential. -
clientData
JSON-encoded client data. -
authenticatorData
public byte[] authenticatorDataAuthenticator data of the application that created the credential. -
signature
public byte[] signatureCryptographic signature of the credential. -
userHandle
public byte[] userHandleUser handle of the passkey. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CheckAuthenticationPasskey
public CheckAuthenticationPasskey()Default constructor for a function, which checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.Returns
Ok -
CheckAuthenticationPasskey
public CheckAuthenticationPasskey(String credentialId, String clientData, byte[] authenticatorData, byte[] signature, byte[] userHandle) Creates a function, which checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.Returns
Ok- Parameters:
credentialId- Base64url-encoded identifier of the credential.clientData- JSON-encoded client data.authenticatorData- Authenticator data of the application that created the credential.signature- Cryptographic signature of the credential.userHandle- User handle of the passkey.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-