Package io.vertx.mutiny.ext.web.handler
Class OtpAuthHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.OtpAuthHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,Consumer<RoutingContext>
public class OtpAuthHandler extends Object implements 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 theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<OtpAuthHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description OtpAuthHandler(io.vertx.ext.web.handler.OtpAuthHandler delegate)OtpAuthHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)static OtpAuthHandlercreate(HotpAuth hotpAuth)static OtpAuthHandlercreate(TotpAuth totpAuth)booleanequals(Object o)io.vertx.ext.web.handler.OtpAuthHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()OtpAuthHandlerissuer(String issuer)OtpAuthHandlerlabel(String label)static OtpAuthHandlernewInstance(io.vertx.ext.web.handler.OtpAuthHandler arg)OtpAuthHandlersetupCallback(Route route)OtpAuthHandlersetupRegisterCallback(Route route)StringtoString()OtpAuthHandlerverifyUrl(String url)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<OtpAuthHandler> __TYPE_ARG
-
-
Constructor Detail
-
OtpAuthHandler
public OtpAuthHandler(io.vertx.ext.web.handler.OtpAuthHandler delegate)
-
OtpAuthHandler
public OtpAuthHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.OtpAuthHandler getDelegate()
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
create
public static OtpAuthHandler create(TotpAuth totpAuth)
- Parameters:
totpAuth- the time based OTP provider.- Returns:
- new instance of the handler.
-
create
public static OtpAuthHandler create(HotpAuth hotpAuth)
- Parameters:
hotpAuth- the hash based OTP provider.- Returns:
- new instance of the handler.
-
verifyUrl
public OtpAuthHandler verifyUrl(String url)
- Parameters:
url- the location where users are to be asked for the OTP code.- Returns:
- fluent self.
-
setupRegisterCallback
public OtpAuthHandler setupRegisterCallback(Route route)
- Parameters:
route- the location where users are to register new authenticator devices/apps.- Returns:
- fluent self.
-
setupCallback
public OtpAuthHandler setupCallback(Route route)
- Parameters:
route- the location where users are to submit challenge responses from authenticator devices/apps.- Returns:
- fluent self.
-
issuer
public OtpAuthHandler issuer(String issuer)
- Parameters:
issuer- aStringfor exampleVert.x OTP- Returns:
- fluent self.
-
label
public OtpAuthHandler label(String label)
- Parameters:
label- aStringfor exampleVert.x OTP- Returns:
- fluent self.
-
accept
public void accept(RoutingContext item)
- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
public static OtpAuthHandler newInstance(io.vertx.ext.web.handler.OtpAuthHandler arg)
-
-