| Constructor and Description |
|---|
HadoopUser(UserGroupInformation ugi,
Settings providerSettings) |
| 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() |
java.lang.String |
toString() |
public HadoopUser(UserGroupInformation ugi, Settings providerSettings)
public <T> T doAs(java.security.PrivilegedAction<T> action)
Userpublic <T> T doAs(java.security.PrivilegedExceptionAction<T> action)
throws EsHadoopException
UserdoAs in interface UserT - The return type from the actionaction - To executeEsHadoopException - Should an exception be thrown during the operationpublic EsToken getEsToken(java.lang.String clusterName)
getEsToken in interface UserclusterName - The cluster namepublic java.lang.Iterable<EsToken> getAllEsTokens()
getAllEsTokens in interface Userpublic void addEsToken(EsToken esToken)
UseraddEsToken in interface UseresToken - Authentication token for Elasticsearchpublic java.lang.String getUserName()
getUserName in interface Userpublic javax.security.auth.kerberos.KerberosPrincipal getKerberosPrincipal()
getKerberosPrincipal in interface Userpublic boolean isProxyUser()
isProxyUser in interface Userpublic UserProvider getRealUserProvider()
getRealUserProvider in interface Userpublic java.lang.String toString()
toString in class java.lang.Object