Class RoleProviders

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

public class RoleProviders extends Object
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 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

      public void usageStats(org.elasticsearch.action.ActionListener<Map<String,Object>> listener)