Class BasicAuthHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.BasicAuthHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>
,AuthenticationHandler
public class BasicAuthHandler extends Object implements AuthenticationHandler, Handler<RoutingContext>
An auth handler that provides HTTP Basic Authentication support.NOTE: This class has been automatically generated from the
original
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<BasicAuthHandler>
__TYPE_ARG
static String
DEFAULT_REALM
The 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 BasicAuthHandler
create(AuthenticationProvider authProvider)
Create a basic auth handlerstatic BasicAuthHandler
create(AuthenticationProvider authProvider, String realm)
Create a basic auth handler, specifying realmboolean
equals(Object o)
BasicAuthHandler
getDelegate()
void
handle(RoutingContext event)
Something has happened, so handle it.int
hashCode()
static BasicAuthHandler
newInstance(BasicAuthHandler arg)
String
toString()
-
-
-
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:
getDelegate
in interfaceAuthenticationHandler
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handle
in interfaceAuthenticationHandler
- Specified by:
handle
in 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)
-
-