org.apache.hadoop.security
Interface GroupMappingServiceProvider

All Known Implementing Classes:
JniBasedUnixGroupsMapping

@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface GroupMappingServiceProvider

An interface for the implementation of a user-to-groups mapping service used by Groups.


Method Summary
 List<String> getGroups(String user)
          Get all various group memberships of a given user.
 

Method Detail

getGroups

List<String> getGroups(String user)
                       throws IOException
Get all various group memberships of a given user. Returns EMPTY list in case of non-existing user

Parameters:
user - User's name
Returns:
group memberships of user
Throws:
IOException


Copyright © 2009 The Apache Software Foundation