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.
|
SqlUserUtil |
createHashedUser(String username,
String hash)
Insert a user into a database.
|
SqlUserUtil |
createHashedUser(String username,
String hash,
Handler<AsyncResult<Void>> resultHandler)
Insert a user into a database.
|
SqlUserUtil |
createRolePermission(String role,
String permission)
Insert a role permission into a database.
|
SqlUserUtil |
createRolePermission(String role,
String permission,
Handler<AsyncResult<Void>> resultHandler)
Insert a role permission into a database.
|
SqlUserUtil |
createUser(String username,
String password)
Insert a user into a database.
|
SqlUserUtil |
createUser(String username,
String password,
Handler<AsyncResult<Void>> resultHandler)
Insert a user into a database.
|
SqlUserUtil |
createUserRole(String username,
String role)
Insert a user role into a database.
|
SqlUserUtil |
createUserRole(String username,
String role,
Handler<AsyncResult<Void>> resultHandler)
Insert a user role into a database.
|
boolean |
equals(Object o) |
SqlUserUtil |
getDelegate() |
int |
hashCode() |
static SqlUserUtil |
newInstance(SqlUserUtil arg) |
Single<Void> |
rxCreateHashedUser(String username,
String hash)
Insert a user into a database.
|
Single<Void> |
rxCreateRolePermission(String role,
String permission)
Insert a role permission into a database.
|
Single<Void> |
rxCreateUser(String username,
String password)
Insert a user into a database.
|
Single<Void> |
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 SqlUserUtil 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 SqlUserUtil 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 Single<Void> 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 SqlUserUtil 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 SqlUserUtil 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 Single<Void> 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 SqlUserUtil 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 SqlUserUtil createUserRole(String username, String role)
username
- the username to be setrole
- a to be setpublic Single<Void> rxCreateUserRole(String username, String role)
username
- the username to be setrole
- a to be setpublic SqlUserUtil 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 SqlUserUtil createRolePermission(String role, String permission)
role
- a to be setpermission
- the permission to be setpublic Single<Void> rxCreateRolePermission(String role, String permission)
role
- a to be setpermission
- the permission to be setpublic static SqlUserUtil newInstance(SqlUserUtil arg)
Copyright © 2023 Eclipse. All rights reserved.