org.apache.hadoop.security
Class JniBasedUnixGroupsMapping
java.lang.Object
org.apache.hadoop.security.JniBasedUnixGroupsMapping
- All Implemented Interfaces:
- GroupMappingServiceProvider
public class JniBasedUnixGroupsMapping
- extends Object
- implements GroupMappingServiceProvider
A JNI-based implementation of GroupMappingServiceProvider
that invokes libC calls to get the group
memberships of a given user.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JniBasedUnixGroupsMapping
public JniBasedUnixGroupsMapping()
getGroups
public List<String> getGroups(String user)
throws IOException
- Description copied from interface:
GroupMappingServiceProvider
- Get all various group memberships of a given user.
Returns EMPTY list in case of non-existing user
- Specified by:
getGroups
in interface GroupMappingServiceProvider
- Parameters:
user
- User's name
- Returns:
- group memberships of user
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation