Class CompositeRoleMapper

java.lang.Object
org.elasticsearch.xpack.security.authc.support.mapper.CompositeRoleMapper
All Implemented Interfaces:
org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper

public class CompositeRoleMapper extends Object implements org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper
A UserRoleMapper that composes one or more delegate role-mappers. During role resolution, each of the delegates is queried, and the individual results are merged into a single Set which includes all the roles from each mapper.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper

    org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper.DistinguishedNamePredicate, org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper.UserData
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompositeRoleMapper(org.elasticsearch.xpack.core.security.authc.RealmConfig realmConfig, org.elasticsearch.watcher.ResourceWatcherService watcherService, NativeRoleMappingStore nativeRoleMappingStore)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    refreshRealmOnChange(org.elasticsearch.xpack.core.security.authc.support.CachingRealm realm)
     
    void
    resolveRoles(org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper.UserData user, org.elasticsearch.action.ActionListener<Set<String>> listener)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CompositeRoleMapper

      public CompositeRoleMapper(org.elasticsearch.xpack.core.security.authc.RealmConfig realmConfig, org.elasticsearch.watcher.ResourceWatcherService watcherService, NativeRoleMappingStore nativeRoleMappingStore)
  • Method Details

    • resolveRoles

      public void resolveRoles(org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper.UserData user, org.elasticsearch.action.ActionListener<Set<String>> listener)
      Specified by:
      resolveRoles in interface org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper
    • refreshRealmOnChange

      public void refreshRealmOnChange(org.elasticsearch.xpack.core.security.authc.support.CachingRealm realm)
      Specified by:
      refreshRealmOnChange in interface org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper