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 AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
An auth handler that provides HTTP Basic Authentication support.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Tim Fox
- See Also:
-
BasicAuthHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.handler.AuthenticationHandler
AuthenticationHandler.AuthenticationHandlerImpl -
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) Create a new instance ofBasicAuthHandlerdelegating to the given (non-null) instance ofBasicAuthHandler.BasicAuthHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Handle an item.static BasicAuthHandlercreate(AuthenticationProvider authProvider) Create a basic auth handlerstatic BasicAuthHandlercreate(AuthenticationProvider authProvider, String realm) Create a basic auth handler, specifying realmbooleanio.vertx.ext.web.handler.BasicAuthHandlerGet the delegate instance.voidhandle(RoutingContext item) Handle an item.inthashCode()static BasicAuthHandlernewInstance(io.vertx.ext.web.handler.BasicAuthHandler delegate) Creates a new instance of theBasicAuthHandler.toString()
-
Field Details
-
DEFAULT_REALM
The default realm to use- See Also:
-
__TYPE_ARG
-
-
Constructor Details
-
BasicAuthHandler
public BasicAuthHandler(io.vertx.ext.web.handler.BasicAuthHandler delegate) Create a new instance ofBasicAuthHandlerdelegating to the given (non-null) instance ofBasicAuthHandler. -
BasicAuthHandler
-
-
Method Details
-
accept
Handle an item. This method is generated from theoriginalmethod."- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
handle
Handle an item. This method is generated from theoriginalmethod."- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
getDelegate
public io.vertx.ext.web.handler.BasicAuthHandler getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
Create a basic auth handler- Parameters:
authProvider- the auth provider to use- Returns:
- the auth handler
-
create
Create a basic auth handler, specifying realm- Parameters:
authProvider- the auth service to userealm- the realm to use- Returns:
- the auth handler
-
newInstance
Creates a new instance of theBasicAuthHandler. -
hashCode
public int hashCode() -
equals
-
toString
-