public class AsyncUserManager extends Object
Constructor and Description |
---|
AsyncUserManager(com.couchbase.client.core.Core core,
AsyncCluster cluster) |
public AsyncUserManager(com.couchbase.client.core.Core core, AsyncCluster cluster)
public CompletableFuture<UserAndMetadata> getUser(AuthDomain domain, String username)
public CompletableFuture<UserAndMetadata> getUser(AuthDomain domain, String username, GetUserOptions options)
public CompletableFuture<List<UserAndMetadata>> getAllUsers()
public CompletableFuture<List<UserAndMetadata>> getAllUsers(GetAllUsersOptions options)
public CompletableFuture<List<RoleAndDescription>> getRoles()
public CompletableFuture<List<RoleAndDescription>> getRoles(GetRolesOptions options)
public CompletableFuture<Void> changePassword(String newPassword)
newPassword
- String to replace the previous password with.public CompletableFuture<Void> changePassword(String newPassword, ChangePasswordOptions options)
newPassword
- String to replace the previous password with.options
- Common options (timeout, retry...)public CompletableFuture<Void> upsertUser(User user)
public CompletableFuture<Void> upsertUser(User user, UpsertUserOptions options)
public CompletableFuture<Void> dropUser(String username)
public CompletableFuture<Void> dropUser(String username, DropUserOptions options)
public CompletableFuture<Group> getGroup(String groupName)
public CompletableFuture<Group> getGroup(String groupName, GetGroupOptions options)
public CompletableFuture<List<Group>> getAllGroups()
public CompletableFuture<List<Group>> getAllGroups(GetAllGroupsOptions options)
public CompletableFuture<Void> upsertGroup(Group group)
public CompletableFuture<Void> upsertGroup(Group group, UpsertGroupOptions options)
public CompletableFuture<Void> dropGroup(String groupName)
public CompletableFuture<Void> dropGroup(String groupName, DropGroupOptions options)
Copyright © 2024 Couchbase, Inc.. All rights reserved.