Package org.apache.storm.security.auth
Class FixedGroupsMapping
- java.lang.Object
-
- org.apache.storm.security.auth.FixedGroupsMapping
-
- All Implemented Interfaces:
IGroupMappingServiceProvider
public class FixedGroupsMapping extends Object implements IGroupMappingServiceProvider
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,Set<String>>
cachedGroups
static org.slf4j.Logger
LOG
static String
STORM_FIXED_GROUP_MAPPING
-
Constructor Summary
Constructors Constructor Description FixedGroupsMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getGroups(String user)
Returns list of groups for a user.void
prepare(Map<String,Object> stormConf)
Invoked once immediately after construction.
-
-
-
Method Detail
-
prepare
public void prepare(Map<String,Object> stormConf)
Invoked once immediately after construction.- Specified by:
prepare
in interfaceIGroupMappingServiceProvider
- Parameters:
stormConf
- Storm configuration
-
getGroups
public Set<String> getGroups(String user) throws IOException
Returns list of groups for a user.- Specified by:
getGroups
in interfaceIGroupMappingServiceProvider
- Parameters:
user
- get groups for this user- Returns:
- list of groups for a given user
- Throws:
IOException
-
-