Package io.vertx.mutiny.ext.web.handler
Class OtpAuthHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.OtpAuthHandler
- All Implemented Interfaces:
MutinyDelegate
,io.vertx.core.Handler<RoutingContext>
,AuthenticationHandler
,Consumer<RoutingContext>
public class OtpAuthHandler
extends Object
implements MutinyDelegate, AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
An auth handler that provides One Time Password (Multi-Factor) Authentication support.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOtpAuthHandler
(io.vertx.ext.web.handler.OtpAuthHandler delegate) OtpAuthHandler
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RoutingContext item) static OtpAuthHandler
static OtpAuthHandler
boolean
io.vertx.ext.web.handler.OtpAuthHandler
void
handle
(RoutingContext arg0) int
hashCode()
static OtpAuthHandler
newInstance
(io.vertx.ext.web.handler.OtpAuthHandler arg) setupCallback
(Route route) setupRegisterCallback
(Route route) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
OtpAuthHandler
public OtpAuthHandler(io.vertx.ext.web.handler.OtpAuthHandler delegate) -
OtpAuthHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.OtpAuthHandler getDelegate()- Specified by:
getDelegate
in interfaceAuthenticationHandler
- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in interfaceAuthenticationHandler
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
-
create
- Parameters:
totpAuth
- the time based OTP provider.- Returns:
- new instance of the handler.
-
create
- Parameters:
hotpAuth
- the hash based OTP provider.- Returns:
- new instance of the handler.
-
verifyUrl
- Parameters:
url
- the location where users are to be asked for the OTP code.- Returns:
- fluent self.
-
setupRegisterCallback
- Parameters:
route
- the location where users are to register new authenticator devices/apps.- Returns:
- fluent self.
-
setupCallback
- Parameters:
route
- the location where users are to submit challenge responses from authenticator devices/apps.- Returns:
- fluent self.
-
issuer
- Parameters:
issuer
- aString
for exampleVert.x OTP
- Returns:
- fluent self.
-
label
- Parameters:
label
- aString
for exampleVert.x OTP
- Returns:
- fluent self.
-
accept
- Specified by:
accept
in interfaceAuthenticationHandler
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
-