org.apache.hadoop.security.authorize
Class ProxyUsers
java.lang.Object
org.apache.hadoop.security.authorize.ProxyUsers
public class ProxyUsers
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONF_GROUPS
public static final String CONF_GROUPS
- See Also:
- Constant Field Values
CONF_HADOOP_PROXYUSER
public static final String CONF_HADOOP_PROXYUSER
- See Also:
- Constant Field Values
CONF_HADOOP_PROXYUSER_RE
public static final String CONF_HADOOP_PROXYUSER_RE
- See Also:
- Constant Field Values
ProxyUsers
public ProxyUsers()
refreshSuperUserGroupsConfiguration
public static void refreshSuperUserGroupsConfiguration(Configuration cn)
- reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"
getProxySuperuserGroupConfKey
public static String getProxySuperuserGroupConfKey(String userName)
- Returns configuration key for effective user groups allowed for a superuser
- Parameters:
userName
- name of the superuser
- Returns:
- configuration key for superuser groups
getProxySuperuserIpConfKey
public static String getProxySuperuserIpConfKey(String userName)
- Return configuration key for superuser ip addresses
- Parameters:
userName
- name of the superuser
- Returns:
- configuration key for superuser ip-addresses
authorize
public static void authorize(UserGroupInformation user,
String remoteAddress,
Configuration newConf)
throws AuthorizationException
- Authorize the superuser which is doing doAs
- Parameters:
user
- ugi of the effective or proxy user which contains a real userremoteAddress
- the ip address of clientnewConf
- configuration
- Throws:
AuthorizationException
Copyright © 2009 The Apache Software Foundation