public class SqlUserUtil extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<SqlUserUtil> |
__TYPE_ARG |
| Constructor and Description |
|---|
SqlUserUtil(Object delegate) |
SqlUserUtil(SqlUserUtil delegate) |
| Modifier and Type | Method and Description |
|---|---|
static SqlUserUtil |
create(SqlClient client)
Create an instance of the user helper.
|
static SqlUserUtil |
create(SqlClient client,
String insertUserSQL,
String insertUserRoleSQL,
String insertRolePermissionSQL)
Create an instance of the user helper with custom queries.
|
Completable |
createHashedUser(String username,
String hash)
Insert a user into a database.
|
Completable |
createRolePermission(String role,
String permission)
Insert a role permission into a database.
|
Completable |
createUser(String username,
String password)
Insert a user into a database.
|
Completable |
createUserRole(String username,
String role)
Insert a user role into a database.
|
boolean |
equals(Object o) |
SqlUserUtil |
getDelegate() |
int |
hashCode() |
static SqlUserUtil |
newInstance(SqlUserUtil 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<SqlUserUtil> __TYPE_ARG
public SqlUserUtil(SqlUserUtil delegate)
public SqlUserUtil(Object delegate)
public SqlUserUtil getDelegate()
public static SqlUserUtil create(SqlClient client)
client - the client with write rights to the database.public static SqlUserUtil create(SqlClient client, String insertUserSQL, String insertUserRoleSQL, String insertRolePermissionSQL)
client - the client with write rights to the database.insertUserSQL - insertUserRoleSQL - insertRolePermissionSQL - public Completable 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 Completable 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 Completable 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 Completable 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 SqlUserUtil newInstance(SqlUserUtil arg)
Copyright © 2022 Eclipse. All rights reserved.