Added Methods |
boolean addToken(Token )
|
Add a token to this UGI |
boolean addTokenIdentifier(TokenIdentifier )
|
Add a TokenIdentifier to this UGI. |
UserGroupInformation createProxyUser(String, UserGroupInformation)
|
Create a proxy user using username of the effective user and the ugi of the real user. |
UserGroupInformation createProxyUserForTesting(String, UserGroupInformation, String[])
|
Create a proxy user UGI for testing HDFS and MapReduce |
UserGroupInformation createRemoteUser(String )
|
Create a user from a login name. |
UserGroupInformation createUserForTesting(String, String[])
|
Create a UGI for testing HDFS and MapReduce |
Object doAs(PrivilegedExceptionAction )
|
Run the given action as the user potentially throwing an exception. |
Object doAs(PrivilegedAction )
|
Run the given action as the user. |
boolean equals(Object )
|
Compare the subjects to see if they are equal to each other. |
AuthenticationMethod getAuthenticationMethod()
|
Get the authentication method from the subject |
UserGroupInformation getCurrentUser()
|
Return the current user including any doAs in the current stack. |
UserGroupInformation getLoginUser()
|
Get the currently logged in user. |
UserGroupInformation getRealUser()
|
get RealUser (vs. |
String getShortUserName()
|
Get the user's login name. |
Subject getSubject()
|
Get the underlying subject from this ugi. |
Set getTokenIdentifiers()
|
Get the set of TokenIdentifiers belonging to this UGI |
Collection getTokens()
|
Obtain the collection of tokens associated with this user. |
boolean hasKerberosCredentials()
|
checks if logged in using kerberos |
int hashCode()
|
Return the hash of the subject. |
boolean isFromKeytab()
|
Is this user logged in from a keytab file |
boolean isLoginKeytabBased()
|
Did the login happen via keytab |
boolean isSecurityEnabled()
|
Determine if UserGroupInformation is using Kerberos to determine user identities or is relying on simple authentication |
void loginUserFromKeytab(String, String)
|
Log a user in from a keytab file. |
UserGroupInformation loginUserFromKeytabAndReturnUGI(String, String)
|
Log a user in from a keytab file. |
void main(String[] )
|
A test method to print out the current user's UGI. |
void reloginFromKeytab()
|
Re-Login a user in from a keytab file. |
void reloginFromTicketCache()
|
Re-Login a user in from the ticket cache. |
void setAuthenticationMethod(AuthenticationMethod )
|
Sets the authentication method in the subject |
void setConfiguration(Configuration )
|
Set the static configuration for UGI. |
String toString()
|
Return the username. |