Package org.apache.hadoop.security
Class NullGroupsMapping
java.lang.Object
org.apache.hadoop.security.NullGroupsMapping
- All Implemented Interfaces:
GroupMappingServiceProvider
This class provides groups mapping for
UserGroupInformation when the
user group information will not be used.-
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) Nothing is returned, so nothing is cached.voidNothing is returned, so nothing is cached.Returns an empty list.getGroupsSet(String user) Get all various group memberships of a given user.
-
Constructor Details
-
NullGroupsMapping
public NullGroupsMapping()
-
-
Method Details
-
cacheGroupsAdd
Nothing is returned, so nothing is cached.- Specified by:
cacheGroupsAddin interfaceGroupMappingServiceProvider- Parameters:
groups- ignored
-
getGroupsSet
Get 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.
-
getGroups
Returns an empty list.- Specified by:
getGroupsin interfaceGroupMappingServiceProvider- Parameters:
user- ignored- Returns:
- an empty list
-
cacheGroupsRefresh
public void cacheGroupsRefresh()Nothing is returned, so nothing is cached.- Specified by:
cacheGroupsRefreshin interfaceGroupMappingServiceProvider
-