Class MongoUserUtil


  • public class MongoUserUtil
    extends Object
    Utility to create users/roles/permissions. This is a helper class and not intended to be a full user management utility. While the standard authentication and authorization interfaces will require usually read only access to the database, in order to use this API a full read/write access must be granted.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • MongoUserUtil

        public MongoUserUtil​(MongoUserUtil delegate)
      • MongoUserUtil

        public MongoUserUtil​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static MongoUserUtil create​(MongoClient client)
        Create an instance of the user helper.
        Parameters:
        client - the client with write rights to the database.
        Returns:
        the instance
      • createUser

        public io.reactivex.rxjava3.core.Single<String> createUser​(String username,
                                                                   String password)
        Insert a user into a database.
        Parameters:
        username - the username to be set
        password - the password in clear text, will be adapted following the definitions of the defined strategy
        Returns:
        fluent self
      • rxCreateUser

        public io.reactivex.rxjava3.core.Single<String> rxCreateUser​(String username,
                                                                     String password)
        Insert a user into a database.
        Parameters:
        username - the username to be set
        password - the password in clear text, will be adapted following the definitions of the defined strategy
        Returns:
        fluent self
      • createUserRolesAndPermissions

        public io.reactivex.rxjava3.core.Single<String> createUserRolesAndPermissions​(String username,
                                                                                      List<String> roles,
                                                                                      List<String> permissions)
        Insert a user role into a database.
        Parameters:
        username - the username to be set
        roles - a to be set
        permissions - a to be set
        Returns:
        fluent self
      • rxCreateUserRolesAndPermissions

        public io.reactivex.rxjava3.core.Single<String> rxCreateUserRolesAndPermissions​(String username,
                                                                                        List<String> roles,
                                                                                        List<String> permissions)
        Insert a user role into a database.
        Parameters:
        username - the username to be set
        roles - a to be set
        permissions - a to be set
        Returns:
        fluent self