Package io.vertx.mutiny.ext.web.handler
Class SimpleAuthenticationHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.SimpleAuthenticationHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class SimpleAuthenticationHandler extends Object implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
A user customizable authentication handler.An auth handler allows your application to provide authentication support. The handler is not fully functional without a authentication function. This function takes the as input and returns a . The future should return a non
NOTE: This class has been automatically generated from thenulluser object. In theauthenticate(java.util.function.Function<io.vertx.mutiny.ext.web.RoutingContext, io.smallrye.mutiny.Uni<io.vertx.mutiny.ext.auth.User>>)you have full control on the request, so all operations like redirect, next, fail are allowed. There are some rules that need to be followed in order to allow this handler to properly interop withChainAuthHandler.originalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<SimpleAuthenticationHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description SimpleAuthenticationHandler(io.vertx.ext.web.handler.SimpleAuthenticationHandler delegate)SimpleAuthenticationHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)SimpleAuthenticationHandlerauthenticate(Function<RoutingContext,io.smallrye.mutiny.Uni<User>> authenticationFunction)static SimpleAuthenticationHandlercreate()booleanequals(Object o)io.vertx.ext.web.handler.SimpleAuthenticationHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static SimpleAuthenticationHandlernewInstance(io.vertx.ext.web.handler.SimpleAuthenticationHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<SimpleAuthenticationHandler> __TYPE_ARG
-
-
Constructor Detail
-
SimpleAuthenticationHandler
public SimpleAuthenticationHandler(io.vertx.ext.web.handler.SimpleAuthenticationHandler delegate)
-
SimpleAuthenticationHandler
public SimpleAuthenticationHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.SimpleAuthenticationHandler getDelegate()
- Specified by:
getDelegatein interfaceAuthenticationHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
create
public static SimpleAuthenticationHandler create()
- Returns:
- a new instance.
-
authenticate
public SimpleAuthenticationHandler authenticate(Function<RoutingContext,io.smallrye.mutiny.Uni<User>> authenticationFunction)
- Parameters:
authenticationFunction- the authentication function.- Returns:
- self
-
accept
public void accept(RoutingContext item)
- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
public static SimpleAuthenticationHandler newInstance(io.vertx.ext.web.handler.SimpleAuthenticationHandler arg)
-
-