PasskeyUser
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
The account a new passkey is registered for: the application's own opaque user id, and the two strings the browser shows while the passkey is created.
4.2.0+- C#
- VB.NET
public sealed class PasskeyUser
Public NotInheritable Class PasskeyUser
None of these is the WebAuthn user handle. The handle is 64 random bytes the component asks the store to keep for the (relying party, user id) pair, is never derived from a name or an e-mail address, and is never shown to anyone — WebAuthn Level 3 §14.6.1. The application authorizes the account before calling RegisterAsync; the component cannot know whether the caller may add a passkey to it.
Constructors
PasskeyUser(userId, name, displayName)
Initializes a new instance of the PasskeyUser class.
| Name | Type | Description |
|---|---|---|
| userId | String | The application's opaque, stable user id. Never displayed. |
| name | String | The account name the browser shows and the passkey provider stores next to the passkey, typically the sign-in name or e-mail address. |
| displayName | String | The human-readable name shown beside name ; null or empty falls back to name . |
Throws:
- ArgumentException userId or name is null, empty or white space, or userId begins or ends with white space.
Properties
DisplayName
String: Returns the human-readable name the browser shows.
Name
String: Returns the account name the browser shows.
UserId
String: Returns the application's opaque user id.