@CompileStatic class BasicAuthHandler
An auth handler that provides HTTP Basic Authentication support.
| Constructor and description |
|---|
BasicAuthHandler
(Object delegate) |
| Type | Name and description |
|---|---|
AuthHandler |
addAuthorities(Set<String> authorities)Add a set of required authorities for this auth handler |
AuthHandler |
addAuthority(String authority)Add a required authority for this auth handler |
static AuthHandler |
create(AuthProvider authProvider)Create a basic auth handler |
static AuthHandler |
create(AuthProvider authProvider, String realm)Create a basic auth handler, specifying realm |
Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
Add a set of required authorities for this auth handler
authorities - the set of authoritiesAdd a required authority for this auth handler
authority - the authorityCreate a basic auth handler
authProvider - the auth provider to useCreate a basic auth handler, specifying realm
authProvider - the auth service to userealm - the realm to useio.vertx:vertx-web:3.1.0