org.apache.hadoop.security
Class JniBasedUnixGroupsMappingWithFallback
java.lang.Object
org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback
- All Implemented Interfaces:
- GroupMappingServiceProvider
public class JniBasedUnixGroupsMappingWithFallback
- extends Object
- implements GroupMappingServiceProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JniBasedUnixGroupsMappingWithFallback
public JniBasedUnixGroupsMappingWithFallback()
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
cacheGroupsRefresh
public void cacheGroupsRefresh()
throws IOException
- Description copied from interface:
GroupMappingServiceProvider
- Refresh the cache of groups and user mapping
- Specified by:
cacheGroupsRefresh
in interface GroupMappingServiceProvider
- Throws:
IOException
cacheGroupsAdd
public void cacheGroupsAdd(List<String> groups)
throws IOException
- Description copied from interface:
GroupMappingServiceProvider
- Caches the group user information
- Specified by:
cacheGroupsAdd
in interface GroupMappingServiceProvider
- Parameters:
groups
- list of groups to add to cache
- Throws:
IOException
Copyright © 2012 Apache Software Foundation. All Rights Reserved.