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 TypeMethodDescriptionvoidaccept(RoutingContext item) static OtpAuthHandlerstatic OtpAuthHandlerbooleanio.vertx.ext.web.handler.OtpAuthHandlervoidhandle(RoutingContext arg0) inthashCode()static OtpAuthHandlernewInstance(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:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein 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- aStringfor exampleVert.x OTP- Returns:
- fluent self.
-
label
- Parameters:
label- aStringfor exampleVert.x OTP- Returns:
- fluent self.
-
accept
- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
-