Package org.apache.hadoop.security
Class JniBasedUnixGroupsNetgroupMappingWithFallback
java.lang.Object
org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback
- All Implemented Interfaces:
GroupMappingServiceProvider
public class JniBasedUnixGroupsNetgroupMappingWithFallback
extends Object
implements GroupMappingServiceProvider
-
Field Summary
Fields inherited from interface org.apache.hadoop.security.GroupMappingServiceProvider
GROUP_MAPPING_CONFIG_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheGroupsAdd(List<String> groups) Caches the group user informationvoidRefresh the cache of groups and user mappingGet all various group memberships of a given user.getGroupsSet(String user) Get all various group memberships of a given user.
-
Constructor Details
-
JniBasedUnixGroupsNetgroupMappingWithFallback
public JniBasedUnixGroupsNetgroupMappingWithFallback()
-
-
Method Details
-
getGroups
Description copied from interface:GroupMappingServiceProviderGet all various group memberships of a given user. Returns EMPTY list in case of non-existing user- Specified by:
getGroupsin interfaceGroupMappingServiceProvider- Parameters:
user- User's name- Returns:
- group memberships of user
- Throws:
IOException- raised on errors performing I/O.
-
cacheGroupsRefresh
Description copied from interface:GroupMappingServiceProviderRefresh the cache of groups and user mapping- Specified by:
cacheGroupsRefreshin interfaceGroupMappingServiceProvider- Throws:
IOException- raised on errors performing I/O.
-
cacheGroupsAdd
Description copied from interface:GroupMappingServiceProviderCaches the group user information- Specified by:
cacheGroupsAddin interfaceGroupMappingServiceProvider- Parameters:
groups- list of groups to add to cache- Throws:
IOException- raised on errors performing I/O.
-
getGroupsSet
Description copied from interface:GroupMappingServiceProviderGet all various group memberships of a given user. Returns EMPTY set in case of non-existing user- Specified by:
getGroupsSetin interfaceGroupMappingServiceProvider- Parameters:
user- User's name- Returns:
- set of group memberships of user
- Throws:
IOException- raised on errors performing I/O.
-