public class MongoUserUtil extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<MongoUserUtil> |
__TYPE_ARG |
| Constructor and Description |
|---|
MongoUserUtil(io.vertx.ext.auth.mongo.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,
io.vertx.ext.auth.mongo.MongoAuthenticationOptions authenticationOptions,
io.vertx.ext.auth.mongo.MongoAuthorizationOptions authorizationOptions)
Create an instance of the user helper with custom queries.
|
io.reactivex.rxjava3.core.Single<String> |
createHashedUser(String username,
String hash)
Insert a user into a database.
|
io.reactivex.rxjava3.core.Single<String> |
createUser(String username,
String password)
Insert a user into a database.
|
io.reactivex.rxjava3.core.Single<String> |
createUserRolesAndPermissions(String username,
List<String> roles,
List<String> permissions)
Insert a user role into a database.
|
boolean |
equals(Object o) |
io.vertx.ext.auth.mongo.MongoUserUtil |
getDelegate() |
int |
hashCode() |
static MongoUserUtil |
newInstance(io.vertx.ext.auth.mongo.MongoUserUtil arg) |
io.reactivex.rxjava3.core.Single<String> |
rxCreateHashedUser(String username,
String hash)
Insert a user into a database.
|
io.reactivex.rxjava3.core.Single<String> |
rxCreateUser(String username,
String password)
Insert a user into a database.
|
io.reactivex.rxjava3.core.Single<String> |
rxCreateUserRolesAndPermissions(String username,
List<String> roles,
List<String> permissions)
Insert a user role into a database.
|
String |
toString() |
public static final TypeArg<MongoUserUtil> __TYPE_ARG
public MongoUserUtil(io.vertx.ext.auth.mongo.MongoUserUtil delegate)
public MongoUserUtil(Object delegate)
public io.vertx.ext.auth.mongo.MongoUserUtil getDelegate()
public static MongoUserUtil create(MongoClient client)
client - the client with write rights to the database.public static MongoUserUtil create(MongoClient client, io.vertx.ext.auth.mongo.MongoAuthenticationOptions authenticationOptions, io.vertx.ext.auth.mongo.MongoAuthorizationOptions authorizationOptions)
client - the client with write rights to the database.authenticationOptions - authorizationOptions - public io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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(io.vertx.ext.auth.mongo.MongoUserUtil arg)
Copyright © 2022 Eclipse. All rights reserved.