public final class ShellBasedUnixGroupsMapping extends Object implements GroupMappingService
GroupMappingService
that exec's the groups
shell command to fetch the group memberships of a given user.GroupMappingService.Factory
Constructor and Description |
---|
ShellBasedUnixGroupsMapping()
Constructs a new
ShellBasedUnixGroupsMapping . |
Modifier and Type | Method and Description |
---|---|
List<String> |
getGroups(String user)
Returns list of groups for a user.
|
public ShellBasedUnixGroupsMapping()
ShellBasedUnixGroupsMapping
.public List<String> getGroups(String user) throws IOException
getGroups
in interface GroupMappingService
user
- get groups for this userIOException
Copyright © 2023. All Rights Reserved.