Class BasicAuthHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.BasicAuthHandler
All Implemented Interfaces:
io.smallrye.mutiny.vertx.MutinyDelegate, io.vertx.core.Handler<RoutingContext>, AuthenticationHandler, Consumer<RoutingContext>

public class BasicAuthHandler extends Object implements io.smallrye.mutiny.vertx.MutinyDelegate, AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
An auth handler that provides HTTP Basic Authentication support.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • BasicAuthHandler

      public BasicAuthHandler(io.vertx.ext.web.handler.BasicAuthHandler delegate)
    • BasicAuthHandler

      public BasicAuthHandler(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.BasicAuthHandler getDelegate()
      Specified by:
      getDelegate in interface AuthenticationHandler
      Specified by:
      getDelegate in interface io.smallrye.mutiny.vertx.MutinyDelegate
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • handle

      public void handle(RoutingContext arg0)
      Specified by:
      handle in interface AuthenticationHandler
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
    • create

      public static BasicAuthHandler create(io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider authProvider)
      Parameters:
      authProvider - the auth provider to use
      Returns:
      the auth handler
    • create

      public static BasicAuthHandler create(io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider authProvider, String realm)
      Parameters:
      authProvider - the auth service to use
      realm - the realm to use
      Returns:
      the auth handler
    • accept

      public void accept(RoutingContext item)
      Specified by:
      accept in interface AuthenticationHandler
      Specified by:
      accept in interface Consumer<RoutingContext>
    • newInstance

      public static BasicAuthHandler newInstance(io.vertx.ext.web.handler.BasicAuthHandler arg)