Class UserManagementImpl

java.lang.Object
org.gridgain.internal.rbac.users.UserManagementImpl
All Implemented Interfaces:
org.gridgain.internal.rbac.users.UserManagement

public class UserManagementImpl extends Object implements org.gridgain.internal.rbac.users.UserManagement
User management implementation.
  • Constructor Details

    • UserManagementImpl

      public UserManagementImpl(Executor executor, UserStore userStore, org.gridgain.internal.rbac.authorization.Authorizer authorizer)
      Constructor.
      Parameters:
      executor - Executor to offload password encoding to, or null to use common pool.
      userStore - User store.
      authorizer - Authorizer.
  • Method Details

    • createAsync

      public CompletableFuture<Void> createAsync(org.gridgain.internal.rbac.users.User user)
      Specified by:
      createAsync in interface org.gridgain.internal.rbac.users.UserManagement
    • dropByUsernameAsync

      public CompletableFuture<Void> dropByUsernameAsync(String username)
      Specified by:
      dropByUsernameAsync in interface org.gridgain.internal.rbac.users.UserManagement
    • findByUsernameAsync

      public CompletableFuture<org.gridgain.internal.rbac.users.User> findByUsernameAsync(String username)
      Specified by:
      findByUsernameAsync in interface org.gridgain.internal.rbac.users.UserManagement
    • findAllAsync

      public CompletableFuture<Collection<org.gridgain.internal.rbac.users.User>> findAllAsync()
      Specified by:
      findAllAsync in interface org.gridgain.internal.rbac.users.UserManagement
    • updateAsync

      public CompletableFuture<Void> updateAsync(String username, org.gridgain.internal.rbac.users.User newUser)
      Specified by:
      updateAsync in interface org.gridgain.internal.rbac.users.UserManagement