Class PublicKeyCredentialRequestOptions
java.lang.Object
com.codename1.io.webauthn.PublicKeyCredentialRequestOptions
W3C PublicKeyCredentialRequestOptionsJSON -- the options blob your
relying-party server sends to start a passkey sign-in (assertion)
ceremony.
Mirrors PublicKeyCredentialCreationOptions: receive JSON from the server,
parse via fromJson(String), hand to
WebAuthnClient.get(PublicKeyCredentialRequestOptions), post the result
back to your server for verification.
- Since:
- 7.0.245
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder for the rare case of synthesising the options client-side (e.g. unit tests). -
Method Summary
Modifier and TypeMethodDescriptionasMap()Parses a PublicKeyCredentialRequestOptionsJSON document.challenge, base64url-encoded as it appears on the wire.getRpId()rpId-- the relying-party identifier the credential was registered against.userVerification-- one of"required","preferred","discouraged".toJson()
-
Method Details
-
fromJson
Parses a PublicKeyCredentialRequestOptionsJSON document. The JSON is preserved so any fields this class doesn't model are still passed through to the authenticator unchanged. -
toJson
-
asMap
-
getRpId
rpId-- the relying-party identifier the credential was registered against. -
getChallenge
challenge, base64url-encoded as it appears on the wire. -
getUserVerification
userVerification-- one of"required","preferred","discouraged". -
newBuilder
-