Class ClientData
Definition
- Assembly:
- Tizen.Security.WebAuthn.dll
Client data JSON.
public class ClientData
- Inheritance
-
objectClientData
Remarks
Refer to the following W3C specification about how to encode jsonData. https://www.w3.org/TR/webauthn-3/#collectedclientdata-json-compatible-serialization-of-client-data
Constructors
View SourceClientData(byte[], HashAlgorithm)
Initializes a new instance of the ClientData class.
Declaration
public ClientData(byte[] jsonData, HashAlgorithm hashAlgo)
Parameters
Type | Name | Description |
---|---|---|
byte[] | jsonData | UTF-8 encoded JSON serialization of the client data. |
HashAlgorithm | hashAlgo | Hash algorithm used to hash the jsonData parameter. |
Remarks
Refer to the following W3C specification about how to encode jsonData. https://www.w3.org/TR/webauthn-3/#collectedclientdata-json-compatible-serialization-of-client-data
Properties
View SourceHashAlgo
Gets the hash algorithm.
Declaration
public HashAlgorithm HashAlgo { get; init; }
Property Value
Type | Description |
---|---|
HashAlgorithm | The hash algorithm used to hash the JsonData property. |
Remarks
Refer to the following W3C specification about how to encode jsonData. https://www.w3.org/TR/webauthn-3/#collectedclientdata-json-compatible-serialization-of-client-data
JsonData
Gets the serialized client data json.
Declaration
public byte[] JsonData { get; init; }
Property Value
Type | Description |
---|---|
byte[] | A UTF-8 encoded JSON serialization of the client data. |
Remarks
Refer to the following W3C specification about how to encode jsonData. https://www.w3.org/TR/webauthn-3/#collectedclientdata-json-compatible-serialization-of-client-data