Class RoleProviders
java.lang.Object
org.elasticsearch.xpack.security.authz.store.RoleProviders
Encapsulates logic regarding the active set of role providers in the system, and their order
The supported providers are (in order):
- built in (reserved) roles
- file-based roles
- index-based roles
- custom (plugin) providers.
The set of permitted role providers can change due to changes in the license state.
-
Constructor Summary
ConstructorsConstructorDescriptionRoleProviders(org.elasticsearch.xpack.core.security.authz.store.ReservedRolesStore reservedRolesStore, FileRolesStore fileRolesStore, NativeRolesStore nativeRolesStore, Map<String, List<BiConsumer<Set<String>, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>>> customRoleProviders, org.elasticsearch.license.XPackLicenseState licenseState) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(org.elasticsearch.xpack.security.authz.store.RoleProviders.ChangeListener listener) List<BiConsumer<Set<String>,org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>> voidusageStats(org.elasticsearch.action.ActionListener<Map<String, Object>> listener)
-
Constructor Details
-
RoleProviders
public RoleProviders(org.elasticsearch.xpack.core.security.authz.store.ReservedRolesStore reservedRolesStore, FileRolesStore fileRolesStore, NativeRolesStore nativeRolesStore, Map<String, List<BiConsumer<Set<String>, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>>> customRoleProviders, org.elasticsearch.license.XPackLicenseState licenseState)
-
-
Method Details
-
addChangeListener
public void addChangeListener(org.elasticsearch.xpack.security.authz.store.RoleProviders.ChangeListener listener) -
getProviders
public List<BiConsumer<Set<String>,org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>> getProviders() -
usageStats
-