Class 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 Detail

      • BasicAuth

        public BasicAuth()
    • Method Detail

      • 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: Authenticator
        Authenticate the call.
        Specified by:
        authenticate in interface Authenticator
        headerMap - header(s) may be set by the authenticator.
        resultHandler - invoked with result of the authentication.
        Returns:
        fluent