Interface Authenticator
-
- All Known Implementing Classes:
BasicAuth,KeycloakOAuth2,NoneAuth,OAuth2
public interface AuthenticatorAuthenticator interface.- Author:
- Marc Savy <marc@rhymewithgravy.com>
-
-
Method Summary
All Methods Instance Methods Abstract 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
Authenticator validateConfig(Map<String,String> config)
Validate config.- Parameters:
config-- Returns:
- fluent
-
authenticate
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)
Authenticate the call.- Parameters:
vertx-config-headerMap- header(s) may be set by the authenticator.resultHandler- invoked with result of the authentication.- Returns:
- fluent
-
-