Package io.vertx.mutiny.ext.web.handler
Class BasicAuthHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.BasicAuthHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class BasicAuthHandler extends Object implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
An auth handler that provides HTTP Basic 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<BasicAuthHandler>__TYPE_ARGstatic StringDEFAULT_REALMThe default realm to use
-
Constructor Summary
Constructors Constructor Description BasicAuthHandler(io.vertx.ext.web.handler.BasicAuthHandler delegate)BasicAuthHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)static BasicAuthHandlercreate(AuthenticationProvider authProvider)static BasicAuthHandlercreate(AuthenticationProvider authProvider, String realm)booleanequals(Object o)io.vertx.ext.web.handler.BasicAuthHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static BasicAuthHandlernewInstance(io.vertx.ext.web.handler.BasicAuthHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<BasicAuthHandler> __TYPE_ARG
-
DEFAULT_REALM
public static final String DEFAULT_REALM
The default realm to use- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BasicAuthHandler
public BasicAuthHandler(io.vertx.ext.web.handler.BasicAuthHandler delegate)
-
BasicAuthHandler
public BasicAuthHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.BasicAuthHandler 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 BasicAuthHandler create(AuthenticationProvider authProvider)
- Parameters:
authProvider- the auth provider to use- Returns:
- the auth handler
-
create
public static BasicAuthHandler create(AuthenticationProvider authProvider, String realm)
- Parameters:
authProvider- the auth service to userealm- the realm to use- Returns:
- the auth handler
-
accept
public void accept(RoutingContext item)
- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
public static BasicAuthHandler newInstance(io.vertx.ext.web.handler.BasicAuthHandler arg)
-
-