Class ConfigurationUserStore

java.lang.Object
org.gridgain.internal.rbac.users.ConfigurationUserStore
All Implemented Interfaces:
Store<org.gridgain.internal.rbac.users.User>, UserStore

public class ConfigurationUserStore extends Object implements UserStore
User store based on cluster configuration AuthenticationConfiguration.
  • Constructor Details

    • ConfigurationUserStore

      public ConfigurationUserStore(org.apache.ignite.internal.security.authentication.configuration.AuthenticationConfiguration authenticationConfiguration)
  • Method Details

    • updateIfExists

      public CompletableFuture<OperationResult> updateIfExists(LowerCaseString username, Function<org.gridgain.internal.rbac.users.User,org.gridgain.internal.rbac.users.User> update)
      Description copied from interface: Store
      Updates entry if given key exists.
      Specified by:
      updateIfExists in interface Store<org.gridgain.internal.rbac.users.User>
      Parameters:
      username - Entry key.
      update - Update entry function.
      Returns:
      Operation result.
    • putIfNotExists

      public CompletableFuture<OperationResult> putIfNotExists(LowerCaseString username, org.gridgain.internal.rbac.users.User user)
      Description copied from interface: Store
      Puts entry if given key does not exist.
      Specified by:
      putIfNotExists in interface Store<org.gridgain.internal.rbac.users.User>
      Parameters:
      username - Entry key.
      user - Entry value.
      Returns:
      Operation result.
    • removeIfExists

      public CompletableFuture<OperationResult> removeIfExists(LowerCaseString username)
      Description copied from interface: Store
      Removes entry if given key exists.
      Specified by:
      removeIfExists in interface Store<org.gridgain.internal.rbac.users.User>
      Parameters:
      username - Entry key.
      Returns:
      Operation result.
    • getAll

      public Collection<org.gridgain.internal.rbac.users.User> getAll()
      Description copied from interface: Store
      Gets all entries. If there is no entries at all, empty collection will be returned.
      Specified by:
      getAll in interface Store<org.gridgain.internal.rbac.users.User>
      Returns:
      Collection of entries.
    • getAllWithKeys

      public Map<LowerCaseString,org.gridgain.internal.rbac.users.User> getAllWithKeys()
      Description copied from interface: Store
      Gets all entries with keys. If there is no entries at all, empty map will be returned.
      Specified by:
      getAllWithKeys in interface Store<org.gridgain.internal.rbac.users.User>
      Returns:
      Map from entry key to entry.
    • get

      public org.gridgain.internal.rbac.users.User get(LowerCaseString username)
      Description copied from interface: Store
      Gets entry by key.
      Specified by:
      get in interface Store<org.gridgain.internal.rbac.users.User>
      Parameters:
      username - Entry key.
      Returns:
      Entry value or null if entry with given key does not exist.
    • get

      public List<org.gridgain.internal.rbac.users.User> get(LowerCaseString... usernames)
      Description copied from interface: Store
      Get entries by keys.
      Specified by:
      get in interface Store<org.gridgain.internal.rbac.users.User>
      Parameters:
      usernames - Entry keys.
      Returns:
      List of corresponding entries. List contains null if entry with given key does not exist