Generated by
JDiff

Class org.apache.hadoop.security.UserGroupInformation

Removed interfaces java.security.Principal, org.apache.hadoop.io.Writable.

Changed from abstract to non-abstract.

Removed Constructors
UserGroupInformation()  
 

Removed Methods
UserGroupInformation getCurrentUGI() @return the UserGroupInformation for the current thread
UserGroupInformation login(Configuration) Login and return a UserGroupInformation object.
UserGroupInformation readFrom(Configuration) Read a UserGroupInformation from conf
void setCurrentUGI(UserGroupInformation) Set the UserGroupInformation for the current thread
void setCurrentUser(UserGroupInformation) Set the UserGroupInformation for the current thread WARNING - This method should be used only in test cases and other exceptional cases
 

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.
 

Changed Methods
String[] getGroupNames() Changed from abstract to non-abstract. Get the group names for this user.
String getUserName() Changed from abstract to non-abstract. Get the user's full principal name.
 

Removed Fields
Log LOG  
 

Added Fields
String HADOOP_TOKEN_FILE_LOCATION Environment variable pointing to the token cache file