public class MongoUserUtil extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<MongoUserUtil> |
__TYPE_ARG |
Constructor and Description |
---|
MongoUserUtil(MongoUserUtil delegate) |
MongoUserUtil(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static MongoUserUtil |
create(MongoClient client)
Create an instance of the user helper.
|
static MongoUserUtil |
create(MongoClient client,
MongoAuthenticationOptions authenticationOptions,
MongoAuthorizationOptions authorizationOptions)
Create an instance of the user helper with custom queries.
|
Single<String> |
createHashedUser(String username,
String hash)
Insert a user into a database.
|
Single<String> |
createUser(String username,
String password)
Insert a user into a database.
|
Single<String> |
createUserRolesAndPermissions(String username,
List<String> roles,
List<String> permissions)
Insert a user role into a database.
|
boolean |
equals(Object o) |
MongoUserUtil |
getDelegate() |
int |
hashCode() |
static MongoUserUtil |
newInstance(MongoUserUtil arg) |
Single<String> |
rxCreateHashedUser(String username,
String hash)
Insert a user into a database.
|
Single<String> |
rxCreateUser(String username,
String password)
Insert a user into a database.
|
Single<String> |
rxCreateUserRolesAndPermissions(String username,
List<String> roles,
List<String> permissions)
Insert a user role into a database.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<MongoUserUtil> __TYPE_ARG
public MongoUserUtil(MongoUserUtil delegate)
public MongoUserUtil(Object delegate)
public MongoUserUtil getDelegate()
public static MongoUserUtil create(MongoClient client)
client
- the client with write rights to the database.public static MongoUserUtil create(MongoClient client, MongoAuthenticationOptions authenticationOptions, MongoAuthorizationOptions authorizationOptions)
client
- the client with write rights to the database.authenticationOptions
- authorizationOptions
- public Single<String> createUser(String username, String password)
username
- the username to be setpassword
- the password in clear text, will be adapted following the definitions of the defined strategypublic Single<String> rxCreateUser(String username, String password)
username
- the username to be setpassword
- the password in clear text, will be adapted following the definitions of the defined strategypublic Single<String> 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<String> 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 Single<String> createUserRolesAndPermissions(String username, List<String> roles, List<String> permissions)
username
- the username to be setroles
- a to be setpermissions
- a to be setpublic Single<String> rxCreateUserRolesAndPermissions(String username, List<String> roles, List<String> permissions)
username
- the username to be setroles
- a to be setpermissions
- a to be setpublic static MongoUserUtil newInstance(MongoUserUtil arg)
Copyright © 2023 Eclipse. All rights reserved.