Class LegacyPasskey
java.lang.Object
com.codename1.backend.security.migration.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.
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyPasskey(String username, byte[] userHandle, byte[] credentialId, byte[] coseKey) -
Method Summary
Modifier and TypeMethodDescriptionbackup(boolean eligible, boolean state) The backup flags the old server recorded (synced passkeys are eligible).signatureCount(long count) transports(List<String> transports) uvInitialized(boolean uvInitialized)
-
Constructor Details
-
LegacyPasskey
- Parameters:
username- the local user it belongs touserHandle- theuser.idit was registered withcredentialId- its credential idcoseKey- its public key, CBOR-encoded as the authenticator sent it
-
-
Method Details
-
signatureCount
-
transports
-
label
-
backup
The backup flags the old server recorded (synced passkeys are eligible). -
uvInitialized
-