Class GetAssertionCallbacks
Definition
- Assembly:
- Tizen.Security.WebAuthn.dll
Callback function list used to get assertion with GetAssertion(ClientData, PubkeyCredRequestOptions, GetAssertionCallbacks).
public class GetAssertionCallbacks
- Inheritance
-
objectGetAssertionCallbacks
Constructors
View SourceGetAssertionCallbacks(Action<string, object>, Action<PubkeyCredAssertion, WauthnError, object>, Action<HybridLinkedData, WauthnError, object>, object)
Initializes a new instance of the GetAssertionCallbacks class.
Declaration
public GetAssertionCallbacks(Action<string, object> qrcodeCallback, Action<PubkeyCredAssertion, 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><PubkeyCredAssertion, WauthnError, object> | responseCallback | Callback function for getting the final response. Invoked when the response for the GetAssertion request need to be returned. The result of the GetAssertion 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 GetAssertion(ClientData, PubkeyCredRequestOptions, GetAssertionCallbacks) request needs to be returned. The result of this 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<PubkeyCredAssertion, WauthnError, object> ResponseCallback { get; init; }
Property Value
Type | Description |
---|---|
System.Action<T1, T2, T3><PubkeyCredAssertion, 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. |