Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class LegacyPasskey

  1. Object
  2. LegacyPasskey

A passkey as another relying party stored it.

What a WebAuthn library keeps is the same everywhere, under different column names: the credential id, the COSE public key the authenticator sent at registration, its signature counter, and the user handle – the user.id the old server registered, which the authenticator returns with every assertion and which therefore cannot change.

A passkey moves only to a server of the same relying party id (the domain). One registered for old.example.com does not answer a challenge for new.example.com; that is WebAuthn, not this migration.

Constructors

public LegacyPasskey(String username, byte[] userHandle, byte[] credentialId, byte[] coseKey)

Methods

public LegacyPasskey signatureCount(long count)
public LegacyPasskey transports(List<String> transports)
public LegacyPasskey label(String label)
public LegacyPasskey backup(boolean eligible, boolean state)The backup flags the old server recorded (synced passkeys are eligible).
public LegacyPasskey uvInitialized(boolean uvInitialized)

Inherited methods

Constructor details

LegacyPasskey

public LegacyPasskey(String username, byte[] userHandle, byte[] credentialId, byte[] coseKey)

Parameters

username String
the local user it belongs to
userHandle byte[]
the user.id it was registered with
credentialId byte[]
its credential id
coseKey byte[]
its public key, CBOR-encoded as the authenticator sent it

Method details

signatureCount

public LegacyPasskey signatureCount(long count)

transports

public LegacyPasskey transports(List<String> transports)

label

public LegacyPasskey label(String label)

backup

public LegacyPasskey backup(boolean eligible, boolean state)
The backup flags the old server recorded (synced passkeys are eligible).

uvInitialized

public LegacyPasskey uvInitialized(boolean uvInitialized)