Class ServiceAuthorizationManager
java.lang.Object
org.apache.hadoop.security.authorize.ServiceAuthorizationManager
@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public class ServiceAuthorizationManager
extends Object
An authorization manager which handles service-level authorization
for incoming service requests.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthorize(UserGroupInformation user, Class<?> protocol, Configuration conf, InetAddress addr) Authorize the user to access the protocol being used.getProtocolsAcls(Class<?> className) getProtocolsBlockedAcls(Class<?> className) getProtocolsBlockedMachineList(Class<?> className) getProtocolsMachineList(Class<?> className) voidrefresh(Configuration conf, PolicyProvider provider) voidrefreshWithLoadedConfiguration(Configuration conf, PolicyProvider provider)
-
Field Details
-
SERVICE_AUTHORIZATION_CONFIG
Deprecated.Configuration key for controlling service-level authorization for Hadoop.- See Also:
-
AUDITLOG
public static final org.slf4j.Logger AUDITLOG
-
-
Constructor Details
-
ServiceAuthorizationManager
public ServiceAuthorizationManager()
-
-
Method Details
-
authorize
public void authorize(UserGroupInformation user, Class<?> protocol, Configuration conf, InetAddress addr) throws AuthorizationException Authorize the user to access the protocol being used.- Parameters:
user- user accessing the serviceprotocol- service being accessedconf- configuration to useaddr- InetAddress of the client- Throws:
AuthorizationException- on authorization failure
-
refresh
-
refreshWithLoadedConfiguration
-
getProtocolsWithAcls
-
getProtocolsAcls
-
getProtocolsBlockedAcls
-
getProtocolsWithMachineLists
-
getProtocolsMachineList
-
getProtocolsBlockedMachineList
-
CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATIONinstead.