Class PasskeyWellKnown
java.lang.Object
com.iizix.server.user.passkey.PasskeyWellKnown
The three
.well-known files that tie applications to the domain of their passkeys (CC-LOGIN-L8-PASSKEYS), served by this server for the domains it is the host of - for a relying party ID that is a parent domain, the web server of that domain serves them:/.well-known/apple-app-site-association: the iOS applications that may use the passkeys of the domain (webcredentials), fromsignIn.passkey.iosApps;/.well-known/assetlinks.json: the Android applications that may (delegate_permission/common.get_login_creds), fromsignIn.passkey.androidApps;/.well-known/webauthn: the origins that may use the relying party ID (WebAuthn related origin requests), fromsignIn.passkey.relatedOrigins.
- Author:
- Christopher Mindus
Field Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionstatic Stringbody(String target, String host, Collection<PasskeySettings> settings) Makes the content of a file for a host from the settings of the applications.static voidRegisters the responders of the three files with the server.static voidunregister(IServer server) Unregisters the responders.
Field Details
TARGET_APPLE
TARGET_ANDROID
TARGET_WEBAUTHN
Method Details
register
Registers the responders of the three files with the server.- Parameters:
server- The server.- Throws:
NullPointerException- Ifserveris null.
unregister
Unregisters the responders.- Parameters:
server- The server.- Throws:
NullPointerException- Ifserveris null.
body
Makes the content of a file for a host from the settings of the applications.- Parameters:
target- The target, one of the three.host- The host of the request.settings- The settings of the applications of the server.- Returns:
- The JSON text, null when no application whose relying party ID is the host has anything for the file.
- Throws:
NullPointerException- Iftargetorsettingsis null.