Class AsyncUserManager
java.lang.Object
com.couchbase.client.java.manager.user.AsyncUserManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchangePassword
(String newPassword) Changes the password of the currently authenticated user.changePassword
(String newPassword, ChangePasswordOptions options) Changes the password of the currently authenticated user.dropGroup
(String groupName, DropGroupOptions options) dropUser
(String username, DropUserOptions options) getAllGroups
(GetAllGroupsOptions options) getAllUsers
(GetAllUsersOptions options) getGroup
(String groupName, GetGroupOptions options) getRoles()
getRoles
(GetRolesOptions options) getUser
(AuthDomain domain, String username) getUser
(AuthDomain domain, String username, GetUserOptions options) upsertGroup
(Group group) upsertGroup
(Group group, UpsertGroupOptions options) upsertUser
(User user) upsertUser
(User user, UpsertUserOptions options)
-
Constructor Details
-
AsyncUserManager
-
-
Method Details
-
getUser
-
getUser
public CompletableFuture<UserAndMetadata> getUser(AuthDomain domain, String username, GetUserOptions options) -
getAllUsers
-
getAllUsers
-
getRoles
-
getRoles
-
changePassword
Changes the password of the currently authenticated user. SDK must be re-started and a new connection established after running, as the previous credentials will no longer be valid.- Parameters:
newPassword
- String to replace the previous password with.
-
changePassword
Changes the password of the currently authenticated user. SDK must be re-started and a new connection established after running, as the previous credentials will no longer be valid.- Parameters:
newPassword
- String to replace the previous password with.options
- Common options (timeout, retry...)
-
upsertUser
-
upsertUser
-
dropUser
-
dropUser
-
getGroup
-
getGroup
-
getAllGroups
-
getAllGroups
-
upsertGroup
-
upsertGroup
-
dropGroup
-
dropGroup
-