public class JniBasedUnixGroupsMappingWithFallback extends Object implements GroupMappingServiceProvider
GROUP_MAPPING_CONFIG_PREFIX
Constructor and Description |
---|
JniBasedUnixGroupsMappingWithFallback() |
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 JniBasedUnixGroupsMappingWithFallback()
public List<String> getGroups(String user) throws IOException
GroupMappingServiceProvider
getGroups
in interface GroupMappingServiceProvider
user
- User's nameIOException
public void cacheGroupsRefresh() throws IOException
GroupMappingServiceProvider
cacheGroupsRefresh
in interface GroupMappingServiceProvider
IOException
public void cacheGroupsAdd(List<String> groups) throws IOException
GroupMappingServiceProvider
cacheGroupsAdd
in interface GroupMappingServiceProvider
groups
- list of groups to add to cacheIOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.