Class NativePrivilegeStore
java.lang.Object
org.elasticsearch.xpack.security.authz.store.NativePrivilegeStore
NativePrivilegeStore is a store that reads/writes ApplicationPrivilegeDescriptor objects,
from an Elasticsearch index.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.common.settings.Setting<Integer>static final org.elasticsearch.common.settings.Setting<org.elasticsearch.core.TimeValue> -
Constructor Summary
ConstructorsConstructorDescriptionNativePrivilegeStore(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.client.internal.Client client, SecurityIndexManager securityIndexManager, CacheInvalidatorRegistry cacheInvalidatorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcacheFetchedDescriptors(Set<String> applicationNamesCacheKey, Map<String, Set<org.elasticsearch.xpack.core.security.authz.privilege.ApplicationPrivilegeDescriptor>> mapOfFetchedDescriptors, long invalidationCount) voiddeletePrivileges(String application, Collection<String> names, org.elasticsearch.action.support.WriteRequest.RefreshPolicy refreshPolicy, org.elasticsearch.action.ActionListener<Map<String, List<String>>> listener) voidgetPrivileges(Collection<String> applications, Collection<String> names, org.elasticsearch.action.ActionListener<Collection<org.elasticsearch.xpack.core.security.authz.privilege.ApplicationPrivilegeDescriptor>> listener) voidputPrivileges(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)
-
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
-
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
-