Class DigestAuthHandler

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

public class DigestAuthHandler 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:
Paulo Lopes
See Also:
  • DigestAuthHandler
  • Field Details

    • DEFAULT_NONCE_EXPIRE_TIMEOUT

      public static final long DEFAULT_NONCE_EXPIRE_TIMEOUT
      The default nonce expire timeout to use in milliseconds.
      See Also:
    • __TYPE_ARG

      public static final TypeArg<DigestAuthHandler> __TYPE_ARG
  • Constructor Details

    • DigestAuthHandler

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

      public DigestAuthHandler(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.DigestAuthHandler 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 DigestAuthHandler create(Vertx vertx, HtdigestAuth authProvider)
      Create a digest auth handler
      Parameters:
      vertx - the vertx instance
      authProvider - the auth provider to use
      Returns:
      the auth handler
    • create

      public static DigestAuthHandler create(Vertx vertx, HtdigestAuth authProvider, long nonceExpireTimeout)
      Create a digest auth handler, specifying the expire timeout for nonces.
      Parameters:
      vertx - the vertx instance
      authProvider - the auth service to use
      nonceExpireTimeout - the nonce expire timeout in milliseconds.
      Returns:
      the auth handler
    • newInstance

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