|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.security.JniBasedUnixGroupsMapping
public class JniBasedUnixGroupsMapping
A JNI-based implementation of GroupMappingServiceProvider
that invokes libC calls to get the group
memberships of a given user.
Constructor Summary | |
---|---|
JniBasedUnixGroupsMapping()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JniBasedUnixGroupsMapping()
Method Detail |
---|
public List<String> getGroups(String user) throws IOException
user
- User's name
IOException
public void cacheGroupsRefresh() throws IOException
IOException
public void cacheGroupsAdd(List<String> groups) throws IOException
groups
- list of groups to add to cache
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |