public class JniBasedUnixGroupsNetgroupMappingWithFallback extends Object implements GroupMappingServiceProvider
GROUP_MAPPING_CONFIG_PREFIX| Constructor and Description |
|---|
JniBasedUnixGroupsNetgroupMappingWithFallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheGroupsAdd(List<String> groups)
Caches the group user information
|
void |
cacheGroupsRefresh()
Refresh the cache of groups and user mapping
|
List<String> |
getGroups(String user)
Get all various group memberships of a given user.
|
public JniBasedUnixGroupsNetgroupMappingWithFallback()
public List<String> getGroups(String user) throws IOException
GroupMappingServiceProvidergetGroups in interface GroupMappingServiceProvideruser - User's nameIOExceptionpublic void cacheGroupsRefresh()
throws IOException
GroupMappingServiceProvidercacheGroupsRefresh in interface GroupMappingServiceProviderIOExceptionpublic void cacheGroupsAdd(List<String> groups) throws IOException
GroupMappingServiceProvidercacheGroupsAdd in interface GroupMappingServiceProvidergroups - list of groups to add to cacheIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.