Class ChainAuthHandler

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

public class ChainAuthHandler extends Object implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
An auth handler that chains to a sequence of handlers.

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

Author:
Paulo Lopes
See Also:
  • ChainAuthHandler
  • Field Details

  • Constructor Details

    • ChainAuthHandler

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

      public ChainAuthHandler(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.ChainAuthHandler 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
    • all

      public static ChainAuthHandler all()
      Create a chain authentication handler that will assert that all handlers pass the verification.
      Returns:
      a new chain authentication handler
    • any

      public static ChainAuthHandler any()
      Create a chain authentication handler that will assert that any handler passes the verification.
      Returns:
      a new chain authentication handler
    • add

      Appends a auth provider to the chain.
      Parameters:
      other - auth handler
      Returns:
      self
    • newInstance

      public static ChainAuthHandler newInstance(io.vertx.ext.web.handler.ChainAuthHandler delegate)
      Creates a new instance of the ChainAuthHandler.
    • 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