Class GetAssertionCallbacks

    Definition

    Namespace:
    Tizen.Security.WebAuthn
    Assembly:
    Tizen.Security.WebAuthn.dll

    Callback function list used to get assertion with GetAssertion(ClientData, PubkeyCredRequestOptions, GetAssertionCallbacks).

    public class GetAssertionCallbacks
    Inheritance
    object
    GetAssertionCallbacks

    Constructors

    View Source

    GetAssertionCallbacks(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 (). If the request does not need to display a QR code then this callback function won't be invoked.

    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:

    • None if the request is completed well,
    • Canceled if the request is cancelled by a Cancel() request.
    • InvalidState if the server entered invalid state. Known causes:
    • proxy issues,
    • reached the limit of credentials stored by the authenticator.
    • TimedOut if the request times out. Known causes:
    • authenticator does not respond during state assisted transactions due to lack of push notifications support (e.g. missing Google Account).
    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:

    • None if the request is completed well,
    • Canceled if the request is cancelled by a Cancel() request.
    • InvalidState if the server entered invalid state. Known causes:
    • proxy issues,
    • reached the limit of credentials stored by the authenticator.
    • TimedOut if the request times out. Known causes:
    • authenticator does not respond during state assisted transactions due to lack of push notifications support (e.g. missing Google Account).
    object userData

    User data to be passed to QrcodeCallback, ResponseCallback and LinkedDataCallback.

    Remarks

    Provided callbacks MUST NOT THROW.

    Properties

    View Source

    LinkedDataCallback

    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.

    View Source

    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.

    View Source

    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.

    View Source

    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.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX