|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.security.authorize.ProxyUsers
public class ProxyUsers
Field Summary | |
---|---|
static String |
CONF_GROUPS
|
static String |
CONF_HADOOP_PROXYUSER
|
static String |
CONF_HADOOP_PROXYUSER_RE
|
Constructor Summary | |
---|---|
ProxyUsers()
|
Method Summary | |
---|---|
static void |
authorize(UserGroupInformation user,
String remoteAddress,
Configuration newConf)
Authorize the superuser which is doing doAs |
static String |
getProxySuperuserGroupConfKey(String userName)
Returns configuration key for effective user groups allowed for a superuser |
static String |
getProxySuperuserIpConfKey(String userName)
Return configuration key for superuser ip addresses |
static void |
refreshSuperUserGroupsConfiguration()
reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts" |
static void |
refreshSuperUserGroupsConfiguration(Configuration conf)
refresh configuration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONF_GROUPS
public static final String CONF_HADOOP_PROXYUSER
public static final String CONF_HADOOP_PROXYUSER_RE
Constructor Detail |
---|
public ProxyUsers()
Method Detail |
---|
public static void refreshSuperUserGroupsConfiguration()
public static void refreshSuperUserGroupsConfiguration(Configuration conf)
conf
- public static String getProxySuperuserGroupConfKey(String userName)
userName
- name of the superuser
public static String getProxySuperuserIpConfKey(String userName)
userName
- name of the superuser
public static void authorize(UserGroupInformation user, String remoteAddress, Configuration newConf) throws AuthorizationException
user
- ugi of the effective or proxy user which contains a real userremoteAddress
- the ip address of clientnewConf
- configuration
AuthorizationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |