java.lang.Object
org.elasticsearch.xpack.security.authc.support.RealmUserLookup

public class RealmUserLookup extends Object
  • Constructor Details

  • Method Details

    • getRealms

      public List<Realm> getRealms()
    • hasRealms

      public boolean hasRealms()
    • lookup

      public void lookup(String principal, ActionListener<org.elasticsearch.core.Tuple<User,Realm>> listener)
      Lookup the principal in the list of realms. The realms are consulted in order. When one realm responds with a non-null User, this is returned with the matching realm, through the listener. If no user if found (including the case where the realms list is empty), then ActionListener.onResponse(Object) is called with a null Tuple.