VirtualAuthenticatorEnvironment Class

The virtual authenticator database (https://w3c.github.io/webauthn/#virtual-authenticator-database): the software authenticators available to the browsing contexts whose WebAuthenticationOptions.Authenticators is this environment.

public sealed class VirtualAuthenticatorEnvironment

Remarks

The environment can be used from any thread.

Constructors

NameDescription
VirtualAuthenticatorEnvironment()

VirtualAuthenticatorEnvironment()

VirtualAuthenticators.cs
public VirtualAuthenticatorEnvironment()

No documentation is available.

Properties

NameDescription
AuthenticatorsGets the authenticators, in the order they were added.

Gets the authenticators, in the order they were added.

public IReadOnlyList<VirtualAuthenticator> Authenticators { get; }

Methods

NameDescription
AddAuthenticator(VirtualAuthenticatorOptions)Adds a virtual authenticator (https://w3c.github.io/webauthn/#add-virtual-authenticator).
GetAuthenticator(string)Returns the authenticator with this id, or null.
RemoveAuthenticator(string)Removes a virtual authenticator (https://w3c.github.io/webauthn/#remove-virtual-authenticator). Returns false when there is no authenticator with this id.

AddAuthenticator(VirtualAuthenticatorOptions)

VirtualAuthenticators.cs

Adds a virtual authenticator (https://w3c.github.io/webauthn/#add-virtual-authenticator).

public VirtualAuthenticator AddAuthenticator(VirtualAuthenticatorOptions options)

Parameters

options VirtualAuthenticatorOptions

Returns

VirtualAuthenticator

Exceptions

ArgumentException
An extension is not supported, or the transport is not a value of AuthenticatorTransport.

GetAuthenticator(string)

VirtualAuthenticators.cs

Returns the authenticator with this id, or null.

public VirtualAuthenticator? GetAuthenticator(string authenticatorId)

Parameters

authenticatorId string

Returns

VirtualAuthenticator?

RemoveAuthenticator(string)

VirtualAuthenticators.cs

Removes a virtual authenticator (https://w3c.github.io/webauthn/#remove-virtual-authenticator). Returns false when there is no authenticator with this id.

public bool RemoveAuthenticator(string authenticatorId)

Parameters

authenticatorId string

Returns

bool