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