@InterfaceAudience.Private public class JobACLsManager extends Object
Constructor and Description |
---|
JobACLsManager(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
boolean |
areACLsEnabled() |
boolean |
checkAccess(org.apache.hadoop.security.UserGroupInformation callerUGI,
JobACL jobOperation,
String jobOwner,
org.apache.hadoop.security.authorize.AccessControlList jobACL)
If authorization is enabled, checks whether the user (in the callerUGI)
is authorized to perform the operation specified by 'jobOperation' on
the job by checking if the user is jobOwner or part of job ACL for the
specific job operation.
|
Map<JobACL,org.apache.hadoop.security.authorize.AccessControlList> |
constructJobACLs(org.apache.hadoop.conf.Configuration conf)
Construct the jobACLs from the configuration so that they can be kept in
the memory.
|
public boolean areACLsEnabled()
public Map<JobACL,org.apache.hadoop.security.authorize.AccessControlList> constructJobACLs(org.apache.hadoop.conf.Configuration conf)
public boolean checkAccess(org.apache.hadoop.security.UserGroupInformation callerUGI, JobACL jobOperation, String jobOwner, org.apache.hadoop.security.authorize.AccessControlList jobACL)
callerUGI
- jobOperation
- jobOwner
- jobACL
- org.apache.hadoop.security.AccessControlException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.