Package io.vertx.rxjava3.ext.web.handler
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
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<WebAuthn4JHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description WebAuthn4JHandler(WebAuthn4JHandler delegate)WebAuthn4JHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebAuthn4JHandlercreate(WebAuthn4J webAuthn)Create a WebAuthN auth handler.booleanequals(Object o)WebAuthn4JHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static WebAuthn4JHandlernewInstance(WebAuthn4JHandler arg)WebAuthn4JHandlersetOrigin(String origin)Set the Origin to be validated by the webauthn object.WebAuthn4JHandlersetupCallback(Route route)The callback route to verify attestations and assertions.WebAuthn4JHandlersetupCredentialsCreateCallback(Route route)The callback route to create registration attestations.WebAuthn4JHandlersetupCredentialsGetCallback(Route route)The callback route to create login attestations.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<WebAuthn4JHandler> __TYPE_ARG
-
-
Constructor Detail
-
WebAuthn4JHandler
public WebAuthn4JHandler(WebAuthn4JHandler delegate)
-
WebAuthn4JHandler
public WebAuthn4JHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public WebAuthn4JHandler getDelegate()
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceHandler<RoutingContext>- Parameters:
event- the event to handle
-
create
public static WebAuthn4JHandler create(WebAuthn4J webAuthn)
Create a WebAuthN auth handler. This handler expects at least the response callback to be installed.- Parameters:
webAuthn-- Returns:
- the auth handler
-
setupCredentialsCreateCallback
public WebAuthn4JHandler setupCredentialsCreateCallback(Route route)
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
public WebAuthn4JHandler setupCredentialsGetCallback(Route route)
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
public WebAuthn4JHandler setupCallback(Route route)
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
public WebAuthn4JHandler setOrigin(String origin)
Set the Origin to be validated by the webauthn object.- Parameters:
origin- - an HTTP Origin- Returns:
- fluent self
-
newInstance
public static WebAuthn4JHandler newInstance(WebAuthn4JHandler arg)
-
-