@InterfaceAudience.Private public class ApplicationACLsManager extends Object
Constructor and Description |
---|
ApplicationACLsManager() |
ApplicationACLsManager(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
addApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId,
Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> acls) |
boolean |
areACLsEnabled() |
boolean |
checkAccess(org.apache.hadoop.security.UserGroupInformation callerUGI,
org.apache.hadoop.yarn.api.records.ApplicationAccessType applicationAccessType,
String applicationOwner,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
If authorization is enabled, checks whether the user (in the callerUGI) is
authorized to perform the access specified by 'applicationAccessType' on
the application by checking if the user is applicationOwner or part of
application ACL for the specific access-type.
|
boolean |
isAdmin(org.apache.hadoop.security.UserGroupInformation calledUGI)
Check if the given user in an admin.
|
void |
removeApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
public ApplicationACLsManager()
public ApplicationACLsManager(org.apache.hadoop.conf.Configuration conf)
public boolean areACLsEnabled()
public void addApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> acls)
public void removeApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
public boolean checkAccess(org.apache.hadoop.security.UserGroupInformation callerUGI, org.apache.hadoop.yarn.api.records.ApplicationAccessType applicationAccessType, String applicationOwner, org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
callerUGI
- applicationAccessType
- applicationOwner
- applicationId
- public final boolean isAdmin(org.apache.hadoop.security.UserGroupInformation calledUGI)
calledUGI
- UserGroupInformation for the userCopyright © 2008–2019 Apache Software Foundation. All rights reserved.