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

public class NativeRoleMappingStore extends AbstractRoleMapperClearRealmCache
This store reads + writes role mappings in an Elasticsearch index.
The store is responsible for all read and write operations as well as resolving roles.

No caching is done by this class, it is handled at a higher level and no polling for changes is done by this class. Modification operations make a best effort attempt to clear the cache on all nodes for the user that was modified.