Class JDBCUserUtil

java.lang.Object
io.vertx.mutiny.ext.auth.jdbc.JDBCUserUtil
All Implemented Interfaces:
MutinyDelegate

@Deprecated public class JDBCUserUtil extends Object implements MutinyDelegate
Deprecated.

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

  • Field Details

  • Constructor Details

    • JDBCUserUtil

      public JDBCUserUtil(io.vertx.ext.auth.jdbc.JDBCUserUtil delegate)
      Deprecated.
    • JDBCUserUtil

      public JDBCUserUtil(Object delegate)
      Deprecated.
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.jdbc.JDBCUserUtil getDelegate()
      Deprecated.
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • create

      @Deprecated public static JDBCUserUtil create(JDBCClient client)
      Deprecated.
      Parameters:
      client - the client with write rights to the database.
      Returns:
      the instance
    • create

      @Deprecated public static JDBCUserUtil create(JDBCClient client, String insertUserSQL, String insertUserRoleSQL, String insertRolePermissionSQL)
      Deprecated.
      Parameters:
      client - the client with write rights to the database.
      insertUserSQL -
      insertUserRoleSQL -
      insertRolePermissionSQL -
      Returns:
      the instance
    • createUser

      @CheckReturnValue @Deprecated public io.smallrye.mutiny.Uni<Void> createUser(String username, String password)
      Deprecated.
      Insert a user into a database.

      Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

      Parameters:
      username - the username to be set
      password - the passsword in clear text, will be adapted following the definitions of the defined strategy
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • createUserAndAwait

      @Deprecated public Void createUserAndAwait(String username, String password)
      Deprecated.
      Blocking variant of createUser(String,String).

      This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Parameters:
      username - the username to be set
      password - the passsword in clear text, will be adapted following the definitions of the defined strategy
      Returns:
      the Void instance produced by the operation.
    • createUserAndForget

      @Deprecated public JDBCUserUtil createUserAndForget(String username, String password)
      Deprecated.
      Variant of createUser(String,String) that ignores the result of the operation.

      This method subscribes on the result of createUser(String,String), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from createUser(String,String) but you don't need to compose it with other operations.

      Parameters:
      username - the username to be set
      password - the passsword in clear text, will be adapted following the definitions of the defined strategy
      Returns:
      the instance of JDBCUserUtil to chain method calls.
    • createHashedUser

      @CheckReturnValue @Deprecated public io.smallrye.mutiny.Uni<Void> createHashedUser(String username, String hash)
      Deprecated.
      Insert a user into a database.

      Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

      Parameters:
      username - the username to be set
      hash - the password hash, as result of HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • createHashedUserAndAwait

      @Deprecated public Void createHashedUserAndAwait(String username, String hash)
      Deprecated.
      Blocking variant of createHashedUser(String,String).

      This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Parameters:
      username - the username to be set
      hash - the password hash, as result of HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
      Returns:
      the Void instance produced by the operation.
    • createHashedUserAndForget

      @Deprecated public JDBCUserUtil createHashedUserAndForget(String username, String hash)
      Deprecated.
      Variant of createHashedUser(String,String) that ignores the result of the operation.

      This method subscribes on the result of createHashedUser(String,String), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from createHashedUser(String,String) but you don't need to compose it with other operations.

      Parameters:
      username - the username to be set
      hash - the password hash, as result of HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
      Returns:
      the instance of JDBCUserUtil to chain method calls.
    • createUserRole

      @CheckReturnValue @Deprecated public io.smallrye.mutiny.Uni<Void> createUserRole(String username, String role)
      Deprecated.
      Insert a user role into a database.

      Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

      Parameters:
      username - the username to be set
      role - a to be set
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • createUserRoleAndAwait

      @Deprecated public Void createUserRoleAndAwait(String username, String role)
      Deprecated.
      Blocking variant of createUserRole(String,String).

      This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Parameters:
      username - the username to be set
      role - a to be set
      Returns:
      the Void instance produced by the operation.
    • createUserRoleAndForget

      @Deprecated public JDBCUserUtil createUserRoleAndForget(String username, String role)
      Deprecated.
      Variant of createUserRole(String,String) that ignores the result of the operation.

      This method subscribes on the result of createUserRole(String,String), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from createUserRole(String,String) but you don't need to compose it with other operations.

      Parameters:
      username - the username to be set
      role - a to be set
      Returns:
      the instance of JDBCUserUtil to chain method calls.
    • createRolePermission

      @CheckReturnValue @Deprecated public io.smallrye.mutiny.Uni<Void> createRolePermission(String role, String permission)
      Deprecated.
      Insert a role permission into a database.

      Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

      Parameters:
      role - a to be set
      permission - the permission to be set
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • createRolePermissionAndAwait

      @Deprecated public Void createRolePermissionAndAwait(String role, String permission)
      Deprecated.
      Blocking variant of createRolePermission(String,String).

      This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Parameters:
      role - a to be set
      permission - the permission to be set
      Returns:
      the Void instance produced by the operation.
    • createRolePermissionAndForget

      @Deprecated public JDBCUserUtil createRolePermissionAndForget(String role, String permission)
      Deprecated.
      Variant of createRolePermission(String,String) that ignores the result of the operation.

      This method subscribes on the result of createRolePermission(String,String), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from createRolePermission(String,String) but you don't need to compose it with other operations.

      Parameters:
      role - a to be set
      permission - the permission to be set
      Returns:
      the instance of JDBCUserUtil to chain method calls.
    • newInstance

      public static JDBCUserUtil newInstance(io.vertx.ext.auth.jdbc.JDBCUserUtil arg)
      Deprecated.