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>
,AuthenticationHandler
,Consumer<RoutingContext>
public class OtpAuthHandler extends Object implements 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 theoriginal
non 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 void
accept(RoutingContext item)
static OtpAuthHandler
create(HotpAuth hotpAuth)
static OtpAuthHandler
create(TotpAuth totpAuth)
boolean
equals(Object o)
io.vertx.ext.web.handler.OtpAuthHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
OtpAuthHandler
issuer(String issuer)
OtpAuthHandler
label(String label)
static OtpAuthHandler
newInstance(io.vertx.ext.web.handler.OtpAuthHandler arg)
OtpAuthHandler
setupCallback(Route route)
OtpAuthHandler
setupRegisterCallback(Route route)
String
toString()
OtpAuthHandler
verifyUrl(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()
- Specified by:
getDelegate
in interfaceAuthenticationHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceAuthenticationHandler
- Specified by:
handle
in 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
- aString
for exampleVert.x OTP
- Returns:
- fluent self.
-
label
public OtpAuthHandler label(String label)
- Parameters:
label
- aString
for exampleVert.x OTP
- Returns:
- fluent self.
-
accept
public void accept(RoutingContext item)
- Specified by:
accept
in interfaceAuthenticationHandler
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static OtpAuthHandler newInstance(io.vertx.ext.web.handler.OtpAuthHandler arg)
-
-