|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.security.UserGroupInformation
public abstract class UserGroupInformation
A Writable
abstract class for storing user and groups information.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
UserGroupInformation()
|
Method Summary | |
---|---|
static UserGroupInformation |
getCurrentUGI()
|
abstract String[] |
getGroupNames()
Get the name of the groups that the user belong to |
abstract String |
getUserName()
Get username |
static UserGroupInformation |
login(Configuration conf)
Login and return a UserGroupInformation object. |
static UserGroupInformation |
readFrom(Configuration conf)
Read a UserGroupInformation from conf |
static void |
setCurrentUGI(UserGroupInformation ugi)
Deprecated. Use setCurrentUser(UserGroupInformation) |
static void |
setCurrentUser(UserGroupInformation ugi)
Set the UserGroupInformation for the current thread
WARNING - This method should be used only in test cases and other exceptional
cases! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.io.Writable |
---|
readFields, write |
Methods inherited from interface java.security.Principal |
---|
equals, getName, hashCode, toString |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public UserGroupInformation()
Method Detail |
---|
public static UserGroupInformation getCurrentUGI()
UserGroupInformation
for the current thread@Deprecated public static void setCurrentUGI(UserGroupInformation ugi)
setCurrentUser(UserGroupInformation)
UserGroupInformation
for the current thread
public static void setCurrentUser(UserGroupInformation ugi)
UserGroupInformation
for the current thread
WARNING - This method should be used only in test cases and other exceptional
cases!
ugi
- UserGroupInformation
for the current threadpublic abstract String getUserName()
public abstract String[] getGroupNames()
public static UserGroupInformation login(Configuration conf) throws LoginException
LoginException
public static UserGroupInformation readFrom(Configuration conf) throws IOException
UserGroupInformation
from conf
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |