Package io.vertx.ext.web.handler
Interface BasicAuthHandler
-
- All Superinterfaces:
AuthenticationHandler,Handler<RoutingContext>
public interface BasicAuthHandler extends AuthenticationHandler
An auth handler that provides HTTP Basic Authentication support.- Author:
- Tim Fox
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_REALMThe default realm to use
-
Method Summary
Static 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 realm
-
-
-
Field Detail
-
DEFAULT_REALM
static final String DEFAULT_REALM
The default realm to use- See Also:
- Constant Field Values
-
-
Method Detail
-
create
static BasicAuthHandler create(AuthenticationProvider authProvider)
Create a basic auth handler- Parameters:
authProvider- the auth provider to use- Returns:
- the auth handler
-
create
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
-
-