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 StringThe default realm to use -
Constructor Summary
ConstructorsConstructorDescriptionBasicAuthHandler(io.vertx.ext.web.handler.BasicAuthHandler delegate) BasicAuthHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) static BasicAuthHandlercreate(AuthenticationProvider authProvider) static BasicAuthHandlercreate(AuthenticationProvider authProvider, String realm) booleanio.vertx.ext.web.handler.BasicAuthHandlervoidhandle(RoutingContext arg0) inthashCode()static BasicAuthHandlernewInstance(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:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein 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:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
-