public class ServiceAuthorizationManager extends Object
限定符和类型 | 字段和说明 |
---|---|
static String |
SERVICE_AUTHORIZATION_CONFIG
已过时。
|
构造器和说明 |
---|
ServiceAuthorizationManager() |
限定符和类型 | 方法和说明 |
---|---|
static void |
authorize(UserGroupInformation user,
Class<?> protocol,
Configuration conf,
InetAddress addr)
Authorize the user to access the protocol being used.
|
static void |
refresh(Configuration conf,
PolicyProvider provider) |
@Deprecated public static final String SERVICE_AUTHORIZATION_CONFIG
CommonConfigurationKeys.HADOOP_SECURITY_AUTHORIZATION
instead.public static void authorize(UserGroupInformation user, Class<?> protocol, Configuration conf, InetAddress addr) throws AuthorizationException
user
- user accessing the serviceprotocol
- service being accessedconf
- configuration to useaddr
- InetAddress of the clientAuthorizationException
- on authorization failurepublic static void refresh(Configuration conf, PolicyProvider provider)
Copyright © 2009 The Apache Software Foundation