public class JniBasedUnixGroupsMapping extends Object
GroupMappingServiceProvider
that invokes libC calls to get the group
memberships of a given user.构造器和说明 |
---|
JniBasedUnixGroupsMapping() |
限定符和类型 | 方法和说明 |
---|---|
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 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