public class JDBCUserUtil extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<JDBCUserUtil> |
__TYPE_ARG |
| Constructor and Description |
|---|
JDBCUserUtil(JDBCUserUtil delegate) |
JDBCUserUtil(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
static JDBCUserUtil |
create(JDBCClient client)
Create an instance of the user helper.
|
static JDBCUserUtil |
create(JDBCClient client,
String insertUserSQL,
String insertUserRoleSQL,
String insertRolePermissionSQL)
Create an instance of the user helper with custom queries.
|
JDBCUserUtil |
createHashedUser(String username,
String hash)
Insert a user into a database.
|
JDBCUserUtil |
createHashedUser(String username,
String hash,
Handler<AsyncResult<Void>> resultHandler)
Insert a user into a database.
|
JDBCUserUtil |
createRolePermission(String role,
String permission)
Insert a role permission into a database.
|
JDBCUserUtil |
createRolePermission(String role,
String permission,
Handler<AsyncResult<Void>> resultHandler)
Insert a role permission into a database.
|
JDBCUserUtil |
createUser(String username,
String password)
Insert a user into a database.
|
JDBCUserUtil |
createUser(String username,
String password,
Handler<AsyncResult<Void>> resultHandler)
Insert a user into a database.
|
JDBCUserUtil |
createUserRole(String username,
String role)
Insert a user role into a database.
|
JDBCUserUtil |
createUserRole(String username,
String role,
Handler<AsyncResult<Void>> resultHandler)
Insert a user role into a database.
|
boolean |
equals(Object o) |
JDBCUserUtil |
getDelegate() |
int |
hashCode() |
static JDBCUserUtil |
newInstance(JDBCUserUtil arg) |
Completable |
rxCreateHashedUser(String username,
String hash)
Insert a user into a database.
|
Completable |
rxCreateRolePermission(String role,
String permission)
Insert a role permission into a database.
|
Completable |
rxCreateUser(String username,
String password)
Insert a user into a database.
|
Completable |
rxCreateUserRole(String username,
String role)
Insert a user role into a database.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<JDBCUserUtil> __TYPE_ARG
public JDBCUserUtil(JDBCUserUtil delegate)
public JDBCUserUtil(Object delegate)
public JDBCUserUtil getDelegate()
public static JDBCUserUtil create(JDBCClient client)
client - the client with write rights to the database.public static JDBCUserUtil create(JDBCClient client, String insertUserSQL, String insertUserRoleSQL, String insertRolePermissionSQL)
client - the client with write rights to the database.insertUserSQL - insertUserRoleSQL - insertRolePermissionSQL - public 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 operationpublic JDBCUserUtil createUser(String username, String password)
username - the username to be setpassword - the passsword in clear text, will be adapted following the definitions of the defined strategypublic Completable rxCreateUser(String username, String password)
username - the username to be setpassword - the passsword in clear text, will be adapted following the definitions of the defined strategypublic JDBCUserUtil createHashedUser(String username, String hash, Handler<AsyncResult<Void>> resultHandler)
username - the username to be sethash - 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)resultHandler - the ResultHandler will be provided with the result of the operationpublic JDBCUserUtil createHashedUser(String username, String hash)
username - the username to be sethash - 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)public Completable rxCreateHashedUser(String username, String hash)
username - the username to be sethash - 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)public JDBCUserUtil 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 operationpublic JDBCUserUtil createUserRole(String username, String role)
username - the username to be setrole - a to be setpublic Completable rxCreateUserRole(String username, String role)
username - the username to be setrole - a to be setpublic 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 operationpublic JDBCUserUtil createRolePermission(String role, String permission)
role - a to be setpermission - the permission to be setpublic Completable rxCreateRolePermission(String role, String permission)
role - a to be setpermission - the permission to be setpublic static JDBCUserUtil newInstance(JDBCUserUtil arg)
Copyright © 2022 Eclipse. All rights reserved.