Package org.apache.hadoop.security
Interface GroupMappingServiceProvider
@Public
@Evolving
public interface GroupMappingServiceProvider
An interface for the implementation of a user-to-groups mapping service
used by
Groups.-
Field Summary
Fields -
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.
-
Field Details
-
GROUP_MAPPING_CONFIG_PREFIX
- See Also:
-
-
Method Details
-
getGroups
Get all various group memberships of a given user. Returns EMPTY list in case of non-existing user- Parameters:
user- User's name- Returns:
- group memberships of user
- Throws:
IOException- raised on errors performing I/O.
-
cacheGroupsRefresh
Refresh the cache of groups and user mapping- Throws:
IOException- raised on errors performing I/O.
-
cacheGroupsAdd
Caches the group user information- Parameters:
groups- list of groups to add to cache- Throws:
IOException- raised on errors performing I/O.
-
getGroupsSet
Get all various group memberships of a given user. Returns EMPTY set in case of non-existing user- Parameters:
user- User's name- Returns:
- set of group memberships of user
- Throws:
IOException- raised on errors performing I/O.
-