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 VirtualAuthenticatorEnvironmentRemarks
The environment can be used from any thread.
Constructors
| Name | Description |
|---|---|
| VirtualAuthenticatorEnvironment() |
VirtualAuthenticatorEnvironment()
VirtualAuthenticators.cspublic VirtualAuthenticatorEnvironment()No documentation is available.
Properties
| Name | Description |
|---|---|
| Authenticators | Gets the authenticators, in the order they were added. |
Authenticators
VirtualAuthenticators.csGets the authenticators, in the order they were added.
public IReadOnlyList<VirtualAuthenticator> Authenticators { get; }Property value
Methods
| Name | Description |
|---|---|
| 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.csAdds a virtual authenticator (https://w3c.github.io/webauthn/#add-virtual-authenticator).
public VirtualAuthenticator AddAuthenticator(VirtualAuthenticatorOptions options)Parameters
optionsVirtualAuthenticatorOptions
Returns
Exceptions
ArgumentException- An extension is not supported, or the transport is not a value of
AuthenticatorTransport.
GetAuthenticator(string)
VirtualAuthenticators.csReturns the authenticator with this id, or null.
public VirtualAuthenticator? GetAuthenticator(string authenticatorId)