Class BasicAuth
- java.lang.Object
-
- io.apiman.gateway.engine.vertx.polling.fetchers.auth.BasicAuth
-
- All Implemented Interfaces:
Authenticator
public final class BasicAuth extends Object implements Authenticator
Set BASIC auth credentials.- username: username
- password: password
- Author:
- Marc Savy <marc@rhymewithgravy.com>
-
-
Constructor Summary
Constructors Constructor Description BasicAuth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticatorauthenticate(io.vertx.core.Vertx vertx, Map<String,String> config, io.vertx.core.MultiMap headerMap, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)Authenticate the call.AuthenticatorvalidateConfig(Map<String,String> config)Validate config.
-
-
-
Method Detail
-
validateConfig
public Authenticator validateConfig(Map<String,String> config)
Description copied from interface:AuthenticatorValidate config.- Specified by:
validateConfigin interfaceAuthenticator- Returns:
- fluent
-
authenticate
public Authenticator authenticate(io.vertx.core.Vertx vertx, Map<String,String> config, io.vertx.core.MultiMap headerMap, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Description copied from interface:AuthenticatorAuthenticate the call.- Specified by:
authenticatein interfaceAuthenticatorheaderMap- header(s) may be set by the authenticator.resultHandler- invoked with result of the authentication.- Returns:
- fluent
-
-