Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class LegacyPasskey
- Object
- 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
Inherited methods
Constructor details
LegacyPasskey
public LegacyPasskey(String username, byte[] userHandle, byte[] credentialId, byte[] coseKey)Parameters
usernameString- the local user it belongs to
userHandlebyte[]- the
user.idit was registered with credentialIdbyte[]- its credential id
coseKeybyte[]- 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)