public class JniBasedUnixGroupsNetgroupMappingWithFallback extends Object
构造器和说明 |
---|
JniBasedUnixGroupsNetgroupMappingWithFallback() |
限定符和类型 | 方法和说明 |
---|---|
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
user
- User's nameIOException
public void cacheGroupsRefresh() throws IOException
IOException
public void cacheGroupsAdd(List<String> groups) throws IOException
groups
- list of groups to add to cacheIOException
Copyright © 2009 The Apache Software Foundation