org.apache.hadoop.security.authorize
Class ServiceAuthorizationManager
java.lang.Object
org.apache.hadoop.security.authorize.ServiceAuthorizationManager
public class ServiceAuthorizationManager
- extends Object
An authorization manager which handles service-level authorization
for incoming service requests.
Method Summary |
static void |
authorize(Subject user,
Class<?> protocol)
Authorize the user to access the protocol being used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_AUTHORIZATION_CONFIG
public static final String SERVICE_AUTHORIZATION_CONFIG
- Configuration key for controlling service-level authorization for Hadoop.
- See Also:
- Constant Field Values
ServiceAuthorizationManager
public ServiceAuthorizationManager()
authorize
public static void authorize(Subject user,
Class<?> protocol)
throws AuthorizationException
- Authorize the user to access the protocol being used.
- Parameters:
user
- user accessing the serviceprotocol
- service being accessed
- Throws:
AuthorizationException
- on authorization failure
Copyright © 2009 The Apache Software Foundation