Class WebAuthnHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.WebAuthnHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>,AuthenticationHandler
public class WebAuthnHandler extends Object implements AuthenticationHandler, Handler<RoutingContext>
An auth handler that provides FIDO2 WebAuthN Relay Party support. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<WebAuthnHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description WebAuthnHandler(WebAuthnHandler delegate)WebAuthnHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebAuthnHandlercreate(WebAuthn webAuthn)Create a WebAuthN auth handler.booleanequals(Object o)WebAuthnHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static WebAuthnHandlernewInstance(WebAuthnHandler arg)WebAuthnHandlersetOrigin(String origin)Set the Origin to be validated by the webauthn object.WebAuthnHandlersetupCallback(Route route)The callback route to verify attestations and assertions.WebAuthnHandlersetupCredentialsCreateCallback(Route route)The callback route to create registration attestations.WebAuthnHandlersetupCredentialsGetCallback(Route route)The callback route to create login attestations.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<WebAuthnHandler> __TYPE_ARG
-
-
Constructor Detail
-
WebAuthnHandler
public WebAuthnHandler(WebAuthnHandler delegate)
-
WebAuthnHandler
public WebAuthnHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public WebAuthnHandler getDelegate()
- Specified by:
getDelegatein interfaceAuthenticationHandler
-
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 WebAuthnHandler create(WebAuthn 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 WebAuthnHandler 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 WebAuthnHandler 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 WebAuthnHandler 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 WebAuthnHandler setOrigin(String origin)
Set the Origin to be validated by the webauthn object.- Parameters:
origin- - an HTTP Origin- Returns:
- fluent self
-
newInstance
public static WebAuthnHandler newInstance(WebAuthnHandler arg)
-
-