Module org.elasticsearch.xcore
Interface UserRoleMapper
public interface UserRoleMapper
Where a realm users an authentication method that does not have in-built support for X-Pack
roles, it may delegate to an implementation of this class the
responsibility for determining the set roles that an authenticated user should have.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis class parse the given string into a DN and return its normalized format.static classA specialised predicate for fields that might be a DistinguishedName (e.g "dn" or "groups").static classA representation of a user for whom roles should be mapped. -
Method Summary
Modifier and TypeMethodDescriptionvoidInforms the mapper that the providedrealmshould be refreshed when the set of role-mappings change.voidresolveRoles(UserRoleMapper.UserData user, ActionListener<Set<String>> listener) Determines the set of roles that should be applied touser.
-
Method Details
-
resolveRoles
Determines the set of roles that should be applied touser. -
clearRealmCacheOnChange
Informs the mapper that the providedrealmshould be refreshed when the set of role-mappings change. The realm may be updated for the local node only, or across the whole cluster depending on whether this role-mapper has node-local data or cluster-wide data.
-