Class RealmUserLookup
java.lang.Object
org.elasticsearch.xpack.security.authc.support.RealmUserLookup
-
Constructor Summary
ConstructorsConstructorDescriptionRealmUserLookup(List<? extends org.elasticsearch.xpack.core.security.authc.Realm> realms, org.elasticsearch.common.util.concurrent.ThreadContext threadContext) -
Method Summary
Modifier and TypeMethodDescriptionList<org.elasticsearch.xpack.core.security.authc.Realm>booleanvoidlookup(String principal, org.elasticsearch.action.ActionListener<org.elasticsearch.core.Tuple<org.elasticsearch.xpack.core.security.user.User, org.elasticsearch.xpack.core.security.authc.Realm>> listener) Lookup theprincipalin the list ofrealms.
-
Constructor Details
-
RealmUserLookup
public RealmUserLookup(List<? extends org.elasticsearch.xpack.core.security.authc.Realm> realms, org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
-
-
Method Details
-
getRealms
-
hasRealms
public boolean hasRealms() -
lookup
public void lookup(String principal, org.elasticsearch.action.ActionListener<org.elasticsearch.core.Tuple<org.elasticsearch.xpack.core.security.user.User, org.elasticsearch.xpack.core.security.authc.Realm>> listener) Lookup theprincipalin the list ofrealms. The realms are consulted in order. When one realm responds with a non-nullUser, this is returned with the matching realm, through thelistener. If no user if found (including the case where therealmslist is empty), thenActionListener.onResponse(Object)is called with anullTuple.
-