|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.security.ShellBasedUnixGroupsMapping
public class ShellBasedUnixGroupsMapping
A simple shell-based implementation of GroupMappingServiceProvider
that exec's the groups
shell command to fetch the group
memberships of a given user.
Constructor Summary | |
---|---|
ShellBasedUnixGroupsMapping()
|
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 ShellBasedUnixGroupsMapping()
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 |