Class BasicAuthHandler

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

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

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

Author:
Tim Fox
See Also:
  • BasicAuthHandler
  • Field Details

  • Constructor Details

    • BasicAuthHandler

      public BasicAuthHandler(io.vertx.ext.web.handler.BasicAuthHandler delegate)
      Create a new instance of BasicAuthHandler delegating to the given (non-null) instance of BasicAuthHandler.
    • BasicAuthHandler

      public BasicAuthHandler(Object delegate)
  • Method Details

    • accept

      public void accept(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      accept in interface AuthenticationHandler
      Specified by:
      accept in interface Consumer<RoutingContext>
    • handle

      public void handle(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      handle in interface AuthenticationHandler
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
    • getDelegate

      public io.vertx.ext.web.handler.BasicAuthHandler getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface AuthenticationHandler
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • create

      public static BasicAuthHandler create(AuthenticationProvider authProvider)
      Create a basic auth handler
      Parameters:
      authProvider - the auth provider to use
      Returns:
      the auth handler
    • create

      public static BasicAuthHandler create(AuthenticationProvider authProvider, String realm)
      Create a basic auth handler, specifying realm
      Parameters:
      authProvider - the auth service to use
      realm - the realm to use
      Returns:
      the auth handler
    • newInstance

      public static BasicAuthHandler newInstance(io.vertx.ext.web.handler.BasicAuthHandler delegate)
      Creates a new instance of the BasicAuthHandler.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object