Class JWTAuth


  • public class JWTAuth
    extends AuthenticationProvider
    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.

    • Constructor Detail

      • JWTAuth

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

        public JWTAuth​(Object delegate)
    • Method Detail

      • 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)