Class SecondaryAuthentication

java.lang.Object
org.elasticsearch.xpack.core.security.authc.support.SecondaryAuthentication

public class SecondaryAuthentication extends Object
Some Elasticsearch APIs need to be provided with 2 sets of credentials. Typically this happens when a system user needs to perform an action while accessing data on behalf of, or user information regarding a logged in user. This class is a representation of that secondary user that can be activated in the security context while processing specific blocks of code or within a listener.