Java org.apache.hadoop.security UserGroupInformation fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.security UserGroupInformation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.security UserGroupInformation.

The text is from its open source code.

Field

StringHADOOP_TOKEN_FILE_LOCATION
Environment variable pointing to the token cache file

Method

voidaddCredentials(Credentials credentials)
Add the given Credentials to this user.
booleanaddToken(Token token)
Add a token to this UGI
booleanaddToken(Text alias, Token token)
Add a named token to this UGI
booleanaddTokenIdentifier(TokenIdentifier tokenId)
Add a TokenIdentifier to this UGI.
voidcheckTGTAndReloginFromKeytab()
Re-login a user from keytab if TGT is expired or is close to expiry.
UserGroupInformationcreateProxyUser(String user, UserGroupInformation realUser)
Create a proxy user using username of the effective user and the ugi of the real user.
UserGroupInformationcreateProxyUserForTesting(String user, UserGroupInformation realUser, String[] userGroups)
Create a proxy user UGI for testing HDFS and MapReduce
UserGroupInformationcreateRemoteUser(String user)
Create a user from a login name.
UserGroupInformationcreateUserForTesting(String user, String[] userGroups)
Create a UGI for testing HDFS and MapReduce
TdoAs(PrivilegedAction action)
Run the given action as the user.
TdoAs(PrivilegedExceptionAction action)
Run the given action as the user, potentially throwing an exception.
booleanequals(Object o)
Compare the subjects to see if they are equal to each other.
AuthenticationMethodgetAuthenticationMethod()
Get the authentication method from the subject
UserGroupInformationgetBestUGI(String ticketCachePath, String user)
Find the most appropriate UserGroupInformation to use
CredentialsgetCredentials()
Obtain the tokens in credentials form associated with this user.
UserGroupInformationgetCurrentUser()
Return the current user, including any doAs in the current stack.
String[]getGroupNames()
Get the group names for this user.
UserGroupInformationgetLoginUser()
Get the currently logged in user.
UserGroupInformationgetRealUser()
get RealUser (vs.
StringgetShortUserName()
Get the user's login name.
SetgetTokenIdentifiers()
Get the set of TokenIdentifiers belonging to this UGI
Collection>getTokens()
Obtain the collection of tokens associated with this user.
UserGroupInformationgetUGIFromSubject(Subject subject)
Create a UserGroupInformation from a Subject with Kerberos principal.
UserGroupInformationgetUGIFromTicketCache(String ticketCache, String user)
Create a UserGroupInformation from a Kerberos ticket cache.
StringgetUserName()
Get the user's full principal name.
inthashCode()
Return the hash of the subject.
booleanhasKerberosCredentials()
checks if logged in using kerberos
booleanisFromKeytab()
Is this user logged in from a keytab file managed by the UGI?
booleanisLoginKeytabBased()
Did the login happen via keytab
booleanisLoginTicketBased()
Did the login happen via ticket cache
booleanisSecurityEnabled()
Determine if UserGroupInformation is using Kerberos to determine user identities or is relying on simple authentication
voidloginUserFromKeytab(String user, String path)
Log a user in from a keytab file.
UserGroupInformationloginUserFromKeytabAndReturnUGI(String user, String path)
Log a user in from a keytab file.
voidloginUserFromSubject(Subject subject)
Log in a user using the given subject
voidreloginFromKeytab()
Re-Login a user in from a keytab file.
voidreloginFromTicketCache()
Re-Login a user in from the ticket cache.
voidreset()
voidsetAuthenticationMethod(AuthenticationMethod authMethod)
Sets the authentication method in the subject
voidsetAuthenticationMethod(AuthMethod authMethod)
Sets the authentication method in the subject
voidsetConfiguration(Configuration conf)
Set the static configuration for UGI.
voidsetLoginUser(UserGroupInformation ugi)
StringtoString()
Return the username.