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 nameIOExceptionpublic void cacheGroupsRefresh()
throws IOException
IOExceptionpublic void cacheGroupsAdd(List<String> groups) throws IOException
groups - list of groups to add to cacheIOExceptionCopyright © 2009 The Apache Software Foundation