Class BasicAuthHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.BasicAuthHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>,io.vertx.lang.rx.RxDelegate,AuthenticationHandler
public class BasicAuthHandler extends Object implements io.vertx.lang.rx.RxDelegate, AuthenticationHandler, Handler<RoutingContext>
An auth handler that provides HTTP Basic Authentication support.NOTE: This class has been automatically generated from the
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<BasicAuthHandler>__TYPE_ARGstatic StringDEFAULT_REALMThe default realm to use
-
Constructor Summary
Constructors Constructor Description BasicAuthHandler(BasicAuthHandler delegate)BasicAuthHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BasicAuthHandlercreate(AuthenticationProvider authProvider)Create a basic auth handlerstatic BasicAuthHandlercreate(AuthenticationProvider authProvider, String realm)Create a basic auth handler, specifying realmbooleanequals(Object o)BasicAuthHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static BasicAuthHandlernewInstance(BasicAuthHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.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(BasicAuthHandler delegate)
-
BasicAuthHandler
public BasicAuthHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public BasicAuthHandler getDelegate()
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceHandler<RoutingContext>- Parameters:
event- the event to handle
-
create
public static BasicAuthHandler create(AuthenticationProvider authProvider)
Create a basic auth handler- Parameters:
authProvider- the auth provider to use- Returns:
- the auth handler
-
create
public static BasicAuthHandler create(AuthenticationProvider authProvider, String realm)
Create a basic auth handler, specifying realm- Parameters:
authProvider- the auth service to userealm- the realm to use- Returns:
- the auth handler
-
newInstance
public static BasicAuthHandler newInstance(BasicAuthHandler arg)
-
-