Module org.elasticsearch.security
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(ReservedRolesStore reservedRolesStore, FileRolesStore fileRolesStore, NativeRolesStore nativeRolesStore, Map<String, List<BiConsumer<Set<String>, ActionListener<RoleRetrievalResult>>>> customRoleProviders, XPackLicenseState licenseState) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(org.elasticsearch.xpack.security.authz.store.RoleProviders.ChangeListener listener) voidusageStats(ActionListener<Map<String, Object>> listener)
-
Constructor Details
-
RoleProviders
public RoleProviders(ReservedRolesStore reservedRolesStore, FileRolesStore fileRolesStore, NativeRolesStore nativeRolesStore, Map<String, List<BiConsumer<Set<String>, ActionListener<RoleRetrievalResult>>>> customRoleProviders, XPackLicenseState licenseState)
-
-
Method Details
-
addChangeListener
public void addChangeListener(org.elasticsearch.xpack.security.authz.store.RoleProviders.ChangeListener listener) -
getProviders
-
usageStats
-