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.
|
Set<String> |
getGroupsSet(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 nameIOException - raised on errors performing I/O.public void cacheGroupsRefresh()
throws IOException
GroupMappingServiceProvidercacheGroupsRefresh in interface GroupMappingServiceProviderIOException - raised on errors performing I/O.public void cacheGroupsAdd(List<String> groups) throws IOException
GroupMappingServiceProvidercacheGroupsAdd in interface GroupMappingServiceProvidergroups - list of groups to add to cacheIOException - raised on errors performing I/O.public Set<String> getGroupsSet(String user) throws IOException
GroupMappingServiceProvidergetGroupsSet in interface GroupMappingServiceProvideruser - User's nameIOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.