Package com.codename1.io.webauthn
package com.codename1.io.webauthn
WebAuthn / passkey client.
WebAuthnClient wraps the OS public-key credential APIs
(ASAuthorizationPlatformPublicKeyCredentialProvider on iOS 16+,
androidx.credentials.CredentialManager on Android API 28+) behind a
portable, JSON-friendly Java surface, letting an app register and
authenticate passkeys against any standards-compliant relying party --
your own backend, Auth0, Firebase, etc.
PublicKeyCredentialCreationOptions /
PublicKeyCredentialRequestOptions describe the ceremony parameters,
PublicKeyCredential carries the result, and WebAuthnException
reports cancellation / platform errors. WebAuthnNative is the SPI the
active port implements.
-
ClassDescriptionThe authenticator's response to a passkey ceremony -- either a registration (
type=public-key,response.attestationObjectpresent) or an assertion (response.signature+response.authenticatorDatapresent).W3CPublicKeyCredentialCreationOptionsJSON-- the options blob your relying-party server sends to start a passkey registration ceremony.Fluent builder forPublicKeyCredentialCreationOptions.W3CPublicKeyCredentialRequestOptionsJSON-- the options blob your relying-party server sends to start a passkey sign-in (assertion) ceremony.Fluent builder for the rare case of synthesising the options client-side (e.g. unit tests).Modern WebAuthn / passkey client.Thrown for failures during a WebAuthn / passkey ceremony driven byWebAuthnClient.Service-provider interface thatWebAuthnClientuses to dispatch a passkey ceremony through the OS's public-key credential API (ASAuthorizationPlatformPublicKeyCredentialProvideron iOS 16+,androidx.credentials.CredentialManageron Android API 28+).