Class JWTAuthHandler

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

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

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

  • Field Details

    • __TYPE_ARG

      public static final io.smallrye.mutiny.vertx.TypeArg<JWTAuthHandler> __TYPE_ARG
  • Constructor Details

    • JWTAuthHandler

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

      public JWTAuthHandler(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.JWTAuthHandler 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 JWTAuthHandler create(io.vertx.mutiny.ext.auth.jwt.JWTAuth authProvider)
      Parameters:
      authProvider - the auth provider to use
      Returns:
      the auth handler
    • create

      public static JWTAuthHandler create(io.vertx.mutiny.ext.auth.jwt.JWTAuth authProvider, String realm)
      Parameters:
      authProvider - the auth provider to use
      realm -
      Returns:
      the auth handler
    • scopeDelimiter

      public JWTAuthHandler scopeDelimiter(String delimiter)
      Parameters:
      delimiter - scope delimiter.
      Returns:
      new instance of this interface.
    • withScope

      public JWTAuthHandler withScope(String scope)
      Parameters:
      scope - scope.
      Returns:
      new instance of this interface.
    • withScopes

      public JWTAuthHandler withScopes(List<String> scopes)
      Parameters:
      scopes - scopes.
      Returns:
      new instance of this interface.
    • accept

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

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