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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<BasicAuthHandler>
__TYPE_ARG
static String
DEFAULT_REALM
The 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 void
accept(RoutingContext item)
static BasicAuthHandler
create(AuthenticationProvider authProvider)
static BasicAuthHandler
create(AuthenticationProvider authProvider, String realm)
boolean
equals(Object o)
io.vertx.ext.web.handler.BasicAuthHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
static BasicAuthHandler
newInstance(io.vertx.ext.web.handler.BasicAuthHandler arg)
String
toString()
-
-
-
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:
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 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:
accept
in interfaceAuthenticationHandler
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static BasicAuthHandler newInstance(io.vertx.ext.web.handler.BasicAuthHandler arg)
-
-