Assertion
Namespace: Wisej.Ext.WebAuthn
Assembly: Wisej.Ext.WebAuthn (4.1.0.0)
An authenticator's response to a client's request for generation of a new authentication assertion.
- C#
- VB.NET
public class Assertion
Public Class Assertion
See #iface-authenticatorassertionresponse.
Constructors
Assertion()
Creates a new instance of Assertion.
The Signature, ClientDataJSON and AuthenticatorData properties can only be set internally; use the #ctor overload to initialize them.
Example:
var assertion = new Assertion();
// All properties are null until they are assigned by the WebAuthn extension.
bool isEmpty = assertion.Signature == null;
Assertion(signature, clientDataJSON, authenticatorData)
Creates a new instance of Assertion with the given configuration.
| Name | Type | Description |
|---|---|---|
| signature | Byte[] | The raw signature returned by the authenticator. |
| clientDataJSON | String | The JSON-compatible serialization of the client data. |
| authenticatorData | String | The authenticator data returned by the authenticator. |
Example:
// Build an Assertion from the values returned by WebAuthn.GetAsync().
CredentialsResponse response = await WebAuthn.GetAsync(challenge, allowCredentials, 60000);
var assertion = new Assertion(
response.Signature,
response.ClientData.Base64,
response.AuthenticatorData.Base64);
Properties
AuthenticatorData
String: The authenticator data returned by the authenticator.
ClientDataJSON
String: The JSON-compatible serialization of client data.
Signature
Byte[]: The raw signature returned from the authenticator.