Constructor and Description |
---|
JdkUser(Subject subject,
Settings providerSettings) |
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() |
String |
toString() |
public <T> T doAs(PrivilegedAction<T> action)
User
public <T> T doAs(PrivilegedExceptionAction<T> action) throws EsHadoopException
User
doAs
in interface User
T
- The return type from the actionaction
- To executeEsHadoopException
- Should an exception be thrown during the operationpublic EsToken getEsToken(String clusterName)
getEsToken
in interface User
clusterName
- The cluster namepublic Iterable<EsToken> getAllEsTokens()
getAllEsTokens
in interface User
public void addEsToken(EsToken esToken)
User
addEsToken
in interface User
esToken
- Authentication token for Elasticsearchpublic String getUserName()
getUserName
in interface User
public KerberosPrincipal getKerberosPrincipal()
getKerberosPrincipal
in interface User
public boolean isProxyUser()
isProxyUser
in interface User
public UserProvider getRealUserProvider()
getRealUserProvider
in interface User