vertx-auth-sql-client instead.
 Utility to create users/roles/permissions. This is a helper class and not intended to be a full user
 management utility. While the standard authentication and authorization interfaces will require usually
 read only access to the database, in order to use this API a full read/write access must be granted.@Deprecated public interface JDBCUserUtil
| Modifier and Type | Method and Description | 
|---|---|
static JDBCUserUtil | 
create(JDBCClient client)
Deprecated.  
Create an instance of the user helper. 
 | 
static JDBCUserUtil | 
create(JDBCClient client,
      String insertUserSQL,
      String insertUserRoleSQL,
      String insertRolePermissionSQL)
Deprecated.  
Create an instance of the user helper with custom queries. 
 | 
default Future<Void> | 
createHashedUser(String username,
                String hash)
Deprecated.  
  | 
JDBCUserUtil | 
createHashedUser(String username,
                String hash,
                Handler<AsyncResult<Void>> resultHandler)
Deprecated.  
Insert a user into a database. 
 | 
default Future<Void> | 
createRolePermission(String role,
                    String permission)
Deprecated.  
  | 
JDBCUserUtil | 
createRolePermission(String role,
                    String permission,
                    Handler<AsyncResult<Void>> resultHandler)
Deprecated.  
Insert a role permission into a database. 
 | 
default Future<Void> | 
createUser(String username,
          String password)
Deprecated.  
  | 
JDBCUserUtil | 
createUser(String username,
          String password,
          Handler<AsyncResult<Void>> resultHandler)
Deprecated.  
Insert a user into a database. 
 | 
default Future<Void> | 
createUserRole(String user,
              String role)
Deprecated.  
  | 
JDBCUserUtil | 
createUserRole(String username,
              String role,
              Handler<AsyncResult<Void>> resultHandler)
Deprecated.  
Insert a user role into a database. 
 | 
static JDBCUserUtil create(JDBCClient client)
client - the client with write rights to the database.static JDBCUserUtil create(JDBCClient client, String insertUserSQL, String insertUserRoleSQL, String insertRolePermissionSQL)
client - the client with write rights to the database.JDBCUserUtil createUser(String username, String password, Handler<AsyncResult<Void>> resultHandler)
username - the username to be setpassword - the passsword in clear text, will be adapted following the definitions of the defined strategyresultHandler - the ResultHandler will be provided with the result of the operationdefault Future<Void> createUser(String username, String password)
createUser(String, String, Handler).JDBCUserUtil createHashedUser(String username, String hash, Handler<AsyncResult<Void>> resultHandler)
username - the username to be sethash - the password hash, as result of HashingStrategy.hash(String, Map, String, String)resultHandler - the ResultHandler will be provided with the result of the operationJDBCUserUtil createUserRole(String username, String role, Handler<AsyncResult<Void>> resultHandler)
username - the username to be setrole - a to be setresultHandler - the ResultHandler will be provided with the result of the operationdefault Future<Void> createUserRole(String user, String role)
createUserRole(String, String, Handler).JDBCUserUtil createRolePermission(String role, String permission, Handler<AsyncResult<Void>> resultHandler)
role - a to be setpermission - the permission to be setresultHandler - the ResultHandler will be provided with the result of the operationCopyright © 2023 Eclipse. All rights reserved.