public class BasicAuthHandlerImpl extends AuthHandlerImpl
| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.ext.web.handler.impl.AuthorizationAuthHandler.Type |
type |
authorities, authProvider, realm| Constructor and Description |
|---|
BasicAuthHandlerImpl(AuthProvider authProvider,
String realm) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
authenticateHeader(RoutingContext context) |
protected void |
parseAuthorization(RoutingContext ctx,
boolean optional,
Handler<AsyncResult<String>> handler) |
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<JsonObject>> handler)
Parses the credentials from the request into a JsonObject.
|
addAuthorities, addAuthority, authorize, handle, processExceptionpublic BasicAuthHandlerImpl(AuthProvider authProvider, String realm)
public void parseCredentials(RoutingContext context, Handler<AsyncResult<JsonObject>> handler)
AuthHandlercontext - the routing contexthandler - the handler to be called once the information is available.protected String authenticateHeader(RoutingContext context)
authenticateHeader in class AuthHandlerImplprotected final void parseAuthorization(RoutingContext ctx, boolean optional, Handler<AsyncResult<String>> handler)
Copyright © 2020. All rights reserved.