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. 
 | 
MongoUserUtil | 
createHashedUser(String username,
                String hash)
Insert a user into a database. 
 | 
MongoUserUtil | 
createHashedUser(String username,
                String hash,
                Handler<AsyncResult<String>> resultHandler)
Insert a user into a database. 
 | 
MongoUserUtil | 
createUser(String username,
          String password)
Insert a user into a database. 
 | 
MongoUserUtil | 
createUser(String username,
          String password,
          Handler<AsyncResult<String>> resultHandler)
Insert a user into a database. 
 | 
MongoUserUtil | 
createUserRolesAndPermissions(String username,
                             List<String> roles,
                             List<String> permissions)
Insert a user role into a database. 
 | 
MongoUserUtil | 
createUserRolesAndPermissions(String username,
                             List<String> roles,
                             List<String> permissions,
                             Handler<AsyncResult<String>> resultHandler)
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 MongoUserUtil createUser(String username, String password, Handler<AsyncResult<String>> 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 operation and the created user document identifierpublic MongoUserUtil 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<String> 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 MongoUserUtil createHashedUser(String username, String hash, Handler<AsyncResult<String>> 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 operation and the created user document identifierpublic MongoUserUtil 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 MongoUserUtil createUserRolesAndPermissions(String username, List<String> roles, List<String> permissions, Handler<AsyncResult<String>> resultHandler)
username - the username to be setroles - a to be setpermissions - a to be setresultHandler - the ResultHandler will be provided with the result of the operation and the created user document identifierpublic MongoUserUtil 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 © 2021 Eclipse. All rights reserved.