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
ConstructorsConstructorDescriptionCompositeRoleMapper(org.elasticsearch.xpack.core.security.authc.RealmConfig realmConfig, org.elasticsearch.watcher.ResourceWatcherService watcherService, NativeRoleMappingStore nativeRoleMappingStore) -
Method Summary
Modifier and TypeMethodDescriptionvoidrefreshRealmOnChange(org.elasticsearch.xpack.core.security.authc.support.CachingRealm realm) voidresolveRoles(org.elasticsearch.xpack.core.security.authc.support.UserRoleMapper.UserData user, org.elasticsearch.action.ActionListener<Set<String>> listener)
-
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:
resolveRolesin interfaceorg.elasticsearch.xpack.core.security.authc.support.UserRoleMapper
-
refreshRealmOnChange
public void refreshRealmOnChange(org.elasticsearch.xpack.core.security.authc.support.CachingRealm realm) - Specified by:
refreshRealmOnChangein interfaceorg.elasticsearch.xpack.core.security.authc.support.UserRoleMapper
-