Package alluxio.security.group.provider
Class ShellBasedUnixGroupsMapping
- java.lang.Object
-
- alluxio.security.group.provider.ShellBasedUnixGroupsMapping
-
- All Implemented Interfaces:
GroupMappingService
public final class ShellBasedUnixGroupsMapping extends java.lang.Object implements GroupMappingService
A simple shell-based implementation ofGroupMappingService
that exec's thegroups
shell command to fetch the group memberships of a given user.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface alluxio.security.group.GroupMappingService
GroupMappingService.Factory
-
-
Constructor Summary
Constructors Constructor Description ShellBasedUnixGroupsMapping()
Constructs a newShellBasedUnixGroupsMapping
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getGroups(java.lang.String user)
Returns list of groups for a user.
-
-
-
Constructor Detail
-
ShellBasedUnixGroupsMapping
public ShellBasedUnixGroupsMapping()
Constructs a newShellBasedUnixGroupsMapping
.
-
-
Method Detail
-
getGroups
public java.util.List<java.lang.String> getGroups(java.lang.String user) throws java.io.IOException
Returns list of groups for a user.- Specified by:
getGroups
in interfaceGroupMappingService
- Parameters:
user
- get groups for this user- Returns:
- list of groups for a given user
- Throws:
java.io.IOException
-
-