Interface WebAuthn4JHandler
- All Superinterfaces:
AuthenticationHandler, Handler<RoutingContext>
An auth handler that provides FIDO2 WebAuthN Relay Party support.
- Author:
- Paulo Lopes
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebAuthn4JHandlercreate(WebAuthn4J webAuthn) Create a WebAuthN auth handler.Set the Origin to be validated by the webauthn object.setupCallback(Route route) The callback route to verify attestations and assertions.The callback route to create registration attestations.setupCredentialsGetCallback(Route route) The callback route to create login attestations.
-
Method Details
-
create
Create a WebAuthN auth handler. This handler expects at least the response callback to be installed.- Returns:
- the auth handler
-
setupCredentialsCreateCallback
The callback route to create registration attestations. Usually this route is/webauthn/register
- Parameters:
route- the route where credential get options are generated.- Returns:
- fluent self.
-
setupCredentialsGetCallback
The callback route to create login attestations. Usually this route is/webauthn/login
- Parameters:
route- the route where credential get options are generated.- Returns:
- fluent self.
-
setupCallback
The callback route to verify attestations and assertions. Usually this route is/webauthn/response
- Parameters:
route- the route where assertions and attestations are verified.- Returns:
- fluent self.
-
setOrigin
Set the Origin to be validated by the webauthn object.- Parameters:
origin- - an HTTP Origin- Returns:
- fluent self
-