Class WebAuthn4JHandler
java.lang.Object
io.vertx.rxjava3.ext.web.handler.WebAuthn4JHandler
- All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, AuthenticationHandler
public class WebAuthn4JHandler
extends Object
implements io.vertx.lang.rx.RxDelegate, AuthenticationHandler, Handler<RoutingContext>
An auth handler that provides FIDO2 WebAuthN Relay Party support.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebAuthn4JHandler(WebAuthn4JHandler delegate) WebAuthn4JHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic WebAuthn4JHandlercreate(WebAuthn4J webAuthn) Create a WebAuthN auth handler.booleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static WebAuthn4JHandlerSet 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.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
WebAuthn4JHandler
-
WebAuthn4JHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceHandler<RoutingContext>- Parameters:
event- the event to handle
-
create
Create a WebAuthN auth handler. This handler expects at least the response callback to be installed.- Parameters:
webAuthn-- 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
-
newInstance
-