Package io.vertx.mutiny.ext.web.handler
Class BasicAuthHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.BasicAuthHandler
- All Implemented Interfaces:
MutinyDelegate
,io.vertx.core.Handler<RoutingContext>
,AuthenticationHandler
,Consumer<RoutingContext>
public class BasicAuthHandler
extends Object
implements MutinyDelegate, 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 the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<BasicAuthHandler>
static final String
The default realm to use -
Constructor Summary
ConstructorsConstructorDescriptionBasicAuthHandler
(io.vertx.ext.web.handler.BasicAuthHandler delegate) BasicAuthHandler
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RoutingContext item) static BasicAuthHandler
create
(AuthenticationProvider authProvider) static BasicAuthHandler
create
(AuthenticationProvider authProvider, String realm) boolean
io.vertx.ext.web.handler.BasicAuthHandler
void
handle
(RoutingContext arg0) int
hashCode()
static BasicAuthHandler
newInstance
(io.vertx.ext.web.handler.BasicAuthHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_REALM
The default realm to use- See Also:
-
-
Constructor Details
-
BasicAuthHandler
public BasicAuthHandler(io.vertx.ext.web.handler.BasicAuthHandler delegate) -
BasicAuthHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.BasicAuthHandler getDelegate()- Specified by:
getDelegate
in interfaceAuthenticationHandler
- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in interfaceAuthenticationHandler
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
-
create
- Parameters:
authProvider
- the auth provider to use- Returns:
- the auth handler
-
create
- Parameters:
authProvider
- the auth service to userealm
- the realm to use- Returns:
- the auth handler
-
accept
- Specified by:
accept
in interfaceAuthenticationHandler
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
-