Class MakeCredentialCallbacks
Definition
- Assembly:
- Tizen.Security.WebAuthn.dll
Callback function list used to make credential with MakeCredential(ClientData, PubkeyCredCreationOptions, MakeCredentialCallbacks).
public class MakeCredentialCallbacks
- Inheritance
-
objectMakeCredentialCallbacks
Constructors
View SourceMakeCredentialCallbacks(Action<string, object>, Action<PubkeyCredAttestation, WauthnError, object>, Action<HybridLinkedData, WauthnError, object>, object)
Initializes a new instance of the MakeCredentialCallbacks class.
Declaration
public MakeCredentialCallbacks(Action<string, object> qrcodeCallback, Action<PubkeyCredAttestation, WauthnError, object> responseCallback, Action<HybridLinkedData, WauthnError, object> linkedDataCallback, object userData)
Parameters
Type | Name | Description |
---|---|---|
System.Action<T1, T2><string, object> | qrcodeCallback | Callback function for displaying QR code.
The qr_contents are encoded as you can see in the encodeQRContents() function of the
FIDO specification:
https://fidoalliance.org/specs/fido-v2.2-rd-20230321/fido-client-to-authenticator-protocol-v2.2-rd-20230321.html#hybrid-qr-initiated.
The qr_contents is encoded like "FIDO:/0254318383..........7406596245".
The image to be displayed shall be created from qr_contents
with media vision API ( |
System.Action<T1, T2, T3><PubkeyCredAttestation, WauthnError, object> | responseCallback | Callback function for getting the final response. Invoked when the response for the MakeCredential(ClientData, PubkeyCredCreationOptions, MakeCredentialCallbacks) request needs to be returned. The result of this request may be one of the following:
|
System.Action<T1, T2, T3><HybridLinkedData, WauthnError, object> | linkedDataCallback | Callback function for getting the updated linked device data. May be called multiple times. Invoked when the response for the get assertion request needs to be returned. The result of the MakeCredential request may be one of the following:
|
object | userData | User data to be passed to QrcodeCallback, ResponseCallback and LinkedDataCallback. |
Remarks
Provided callbacks MUST NOT THROW.
Properties
View SourceLinkedDataCallback
Gets the callback function for getting the updated linked device data.
Declaration
public Action<HybridLinkedData, WauthnError, object> LinkedDataCallback { get; init; }
Property Value
Type | Description |
---|---|
System.Action<T1, T2, T3><HybridLinkedData, WauthnError, object> | The callback function for getting the updated linked device data from the authenticator. |
QrcodeCallback
Gets the callback function for displaying the QR code.
Declaration
public Action<string, object> QrcodeCallback { get; init; }
Property Value
Type | Description |
---|---|
System.Action<T1, T2><string, object> | The callback function for displaying the QR code. |
ResponseCallback
Gets the callback function for getting the final response.
Declaration
public Action<PubkeyCredAttestation, WauthnError, object> ResponseCallback { get; init; }
Property Value
Type | Description |
---|---|
System.Action<T1, T2, T3><PubkeyCredAttestation, WauthnError, object> | The callback function for getting the final response of the operation from the authenticator. |
UserData
Gets the user data to be passed to callbacks.
Declaration
public object UserData { get; init; }
Property Value
Type | Description |
---|---|
object | The user data to be passed to QrcodeCallback, ResponseCallback and LinkedDataCallback. |