Skip to main content

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.

public class Assertion

See #iface-authenticatorassertionresponse.

Constructors​

Instance member 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;

Instance member Assertion(signature, clientDataJSON, authenticatorData)​

Creates a new instance of Assertion with the given configuration.

NameTypeDescription
signatureByte[]The raw signature returned by the authenticator.
clientDataJSONStringThe JSON-compatible serialization of the client data.
authenticatorDataStringThe 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​

Instance member AuthenticatorData​

String: The authenticator data returned by the authenticator.

Instance member ClientDataJSON​

String: The JSON-compatible serialization of client data.

Instance member Signature​

Byte[]: The raw signature returned from the authenticator.