Class NativePrivilegeStore

java.lang.Object
org.elasticsearch.xpack.security.authz.store.NativePrivilegeStore

public class NativePrivilegeStore extends Object
NativePrivilegeStore is a store that reads/writes ApplicationPrivilegeDescriptor objects, from an Elasticsearch index.
  • Field Details

    • CACHE_MAX_APPLICATIONS_SETTING

      public static final org.elasticsearch.common.settings.Setting<Integer> CACHE_MAX_APPLICATIONS_SETTING
    • CACHE_TTL_SETTING

      public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.core.TimeValue> CACHE_TTL_SETTING
  • Constructor Details

    • NativePrivilegeStore

      public NativePrivilegeStore(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.client.internal.Client client, SecurityIndexManager securityIndexManager, CacheInvalidatorRegistry cacheInvalidatorRegistry)
  • Method Details

    • getPrivileges

      public void getPrivileges(Collection<String> applications, Collection<String> names, org.elasticsearch.action.ActionListener<Collection<org.elasticsearch.xpack.core.security.authz.privilege.ApplicationPrivilegeDescriptor>> listener)
    • cacheFetchedDescriptors

      protected void cacheFetchedDescriptors(Set<String> applicationNamesCacheKey, Map<String,Set<org.elasticsearch.xpack.core.security.authz.privilege.ApplicationPrivilegeDescriptor>> mapOfFetchedDescriptors, long invalidationCount)
    • putPrivileges

      public void putPrivileges(Collection<org.elasticsearch.xpack.core.security.authz.privilege.ApplicationPrivilegeDescriptor> privileges, org.elasticsearch.action.support.WriteRequest.RefreshPolicy refreshPolicy, org.elasticsearch.action.ActionListener<Map<String,List<String>>> listener)
    • deletePrivileges

      public void deletePrivileges(String application, Collection<String> names, org.elasticsearch.action.support.WriteRequest.RefreshPolicy refreshPolicy, org.elasticsearch.action.ActionListener<Map<String,List<String>>> listener)