Class BasicAuthHandler
java.lang.Object
io.vertx.reactivex.ext.web.handler.BasicAuthHandler
- All Implemented Interfaces:
Handler<RoutingContext>,RxDelegate,AuthenticationHandler
public class BasicAuthHandler
extends Object
implements RxDelegate, 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
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<BasicAuthHandler>static final StringThe default realm to use -
Constructor Summary
ConstructorsConstructorDescriptionBasicAuthHandler(BasicAuthHandler delegate) BasicAuthHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicAuthHandlercreate(AuthenticationProvider authProvider) Create a basic auth handlerstatic BasicAuthHandlercreate(AuthenticationProvider authProvider, String realm) Create a basic auth handler, specifying realmbooleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static BasicAuthHandlertoString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_REALM
The default realm to use- See Also:
-
-
Constructor Details
-
BasicAuthHandler
-
BasicAuthHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getDelegate
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceRxDelegate
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceHandler<RoutingContext>- Parameters:
event- the event to handle
-
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
-