Class JWTAuth

All Implemented Interfaces:
MutinyDelegate

public class JWTAuth extends AuthenticationProvider implements MutinyDelegate
Factory interface for creating JWT based AuthenticationProvider instances.

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

  • Field Details

  • Constructor Details

    • JWTAuth

      public JWTAuth(io.vertx.ext.auth.jwt.JWTAuth delegate)
    • JWTAuth

      public JWTAuth(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.jwt.JWTAuth getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Overrides:
      getDelegate in class AuthenticationProvider
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class AuthenticationProvider
    • create

      public static JWTAuth create(Vertx vertx, io.vertx.ext.auth.jwt.JWTAuthOptions config)
      Parameters:
      vertx - the Vertx instance
      config - the config
      Returns:
      the auth provider
    • generateToken

      public String generateToken(io.vertx.core.json.JsonObject claims, io.vertx.ext.auth.JWTOptions options)
      Parameters:
      claims - Json with user defined claims for a list of official claims
      options - extra options for the generation
      Returns:
      JWT encoded token
    • generateToken

      public String generateToken(io.vertx.core.json.JsonObject claims)
      Parameters:
      claims - Json with user defined claims for a list of official claims
      Returns:
      JWT encoded token
    • newInstance

      public static JWTAuth newInstance(io.vertx.ext.auth.jwt.JWTAuth arg)