Package io.vertx.mutiny.ext.web.handler
Class WebAuthn4JHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.WebAuthn4JHandler
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class WebAuthn4JHandler
extends Object
implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
An auth handler that provides FIDO2 WebAuthN Relay Party support.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Paulo Lopes
- See Also:
-
WebAuthn4JHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.handler.AuthenticationHandler
AuthenticationHandler.AuthenticationHandlerImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebAuthn4JHandler(io.vertx.ext.web.handler.WebAuthn4JHandler delegate) Create a new instance ofWebAuthn4JHandlerdelegating to the given (non-null) instance ofWebAuthn4JHandler.WebAuthn4JHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Handle an item.static WebAuthn4JHandlercreate(WebAuthn4J webAuthn) Create a WebAuthN auth handler.booleanio.vertx.ext.web.handler.WebAuthn4JHandlerGet the delegate instance.voidhandle(RoutingContext item) Handle an item.inthashCode()static WebAuthn4JHandlernewInstance(io.vertx.ext.web.handler.WebAuthn4JHandler delegate) Creates a new instance of theWebAuthn4JHandler.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.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
WebAuthn4JHandler
public WebAuthn4JHandler(io.vertx.ext.web.handler.WebAuthn4JHandler delegate) Create a new instance ofWebAuthn4JHandlerdelegating to the given (non-null) instance ofWebAuthn4JHandler. -
WebAuthn4JHandler
-
-
Method Details
-
accept
Handle an item. This method is generated from theoriginalmethod."- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
handle
Handle an item. This method is generated from theoriginalmethod."- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
getDelegate
public io.vertx.ext.web.handler.WebAuthn4JHandler getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
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
-
newInstance
Creates a new instance of theWebAuthn4JHandler. -
hashCode
public int hashCode() -
equals
-
toString
-