Passkey class

A Universal Passkey is a public and private key pair. The private key is generated, stored, and never leaves the user’s devices’ hardware root of trust (i.e. Secure Enclave). The public key is sent to the Beyond Identity cloud. The private key cannot be tampered with, viewed, or removed from the device in which it is created unless the user explicitly indicates that the trusted device be removed. Passkeys are cryptographically linked to devices and an Identity. A single device can store multiple passkeys for different users and a single Identity can have multiple passkeys.

Constructors

Passkey({required String id, required String localCreated, required String localUpdated, required String apiBaseUrl, required String keyHandle, required PasskeyState state, required String created, required String updated, required PasskeyTenant tenant, required PasskeyRealm realm, required PasskeyIdentity identity, required PasskeyTheme theme})

Properties

apiBaseUrl String
The base url for all binding & auth requests
getter/setter pair
created String
The time this passkey was created.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The Globally unique ID of this passkey.
getter/setter pair
identity PasskeyIdentity
Identity information associated with this passkey.
getter/setter pair
keyHandle String
Associated key handle.
getter/setter pair
localCreated String
The time when this passkey was created locally. This could be different from "created" which is the time when this passkey was created on the server.
getter/setter pair
localUpdated String
The last time when this passkey was updated locally. This could be different from "updated" which is the last time when this passkey was updated on the server.
getter/setter pair
realm PasskeyRealm
Realm information associated with this passkey.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state PasskeyState
The current state of this passkey
getter/setter pair
tenant PasskeyTenant
Tenant information associated with this passkey.
getter/setter pair
theme PasskeyTheme
Theme information associated with this passkey
getter/setter pair
updated String
The last time this passkey was updated.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

mapToPasskey(dynamic passkey) Passkey