public interface User
| Modifier and Type | Method and Description | 
|---|---|
| void | addEsToken(EsToken esToken)Adds the given esToken to the user | 
| <T> T | doAs(PrivilegedAction<T> action)Execute the given action as the user | 
| <T> T | doAs(PrivilegedExceptionAction<T> action)Execute the given action as the user | 
| Iterable<EsToken> | getAllEsTokens() | 
| EsToken | getEsToken(String clusterName) | 
| KerberosPrincipal | getKerberosPrincipal() | 
| UserProvider | getRealUserProvider() | 
| String | getUserName() | 
| boolean | isProxyUser() | 
<T> T doAs(PrivilegedAction<T> action)
T - The return type from the actionaction - To execute<T> T doAs(PrivilegedExceptionAction<T> action) throws EsHadoopException
T - The return type from the actionaction - To executeEsHadoopException - Should an exception be thrown during the operationEsToken getEsToken(String clusterName)
clusterName - The cluster nameIterable<EsToken> getAllEsTokens()
void addEsToken(EsToken esToken)
esToken - Authentication token for ElasticsearchString getUserName()
KerberosPrincipal getKerberosPrincipal()
boolean isProxyUser()
UserProvider getRealUserProvider()