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.
  • Method Details

    • resolveRoles

      void resolveRoles(UserRoleMapper.UserData user, ActionListener<Set<String>> listener)
      Determines the set of roles that should be applied to user.
    • clearRealmCacheOnChange

      void clearRealmCacheOnChange(CachingRealm realm)
      Informs the mapper that the provided realm should 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.