public class ServiceAuthorizationManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_AUTHORIZATION_CONFIG
Configuration key for controlling service-level authorization for Hadoop.
|
Constructor and Description |
---|
ServiceAuthorizationManager() |
Modifier and Type | Method and Description |
---|---|
static void |
authorize(Subject user,
Class<?> protocol)
Authorize the user to access the protocol being used.
|
public static final String SERVICE_AUTHORIZATION_CONFIG
public static void authorize(Subject user, Class<?> protocol) throws AuthorizationException
user
- user accessing the serviceprotocol
- service being accessedAuthorizationException
- on authorization failureCopyright © 2010 The Apache Software Foundation