public class SimpleWhitelistAuthorizer extends Object implements IAuthorizer
An authorization implementation that simply checks a whitelist of users that are allowed to use the cluster.
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
users |
static String |
WHITELIST_USERS_CONF |
Constructor and Description |
---|
SimpleWhitelistAuthorizer() |
Modifier and Type | Method and Description |
---|---|
boolean |
permit(ReqContext context,
String operation,
Map<String,Object> topoConf)
permit() method is invoked for each incoming Thrift request. |
void |
prepare(Map<String,Object> conf)
Invoked once immediately after construction.
|
public static final String WHITELIST_USERS_CONF
public void prepare(Map<String,Object> conf)
Invoked once immediately after construction.
prepare
in interface IAuthorizer
conf
- Storm configurationpublic boolean permit(ReqContext context, String operation, Map<String,Object> topoConf)
permit()
method is invoked for each incoming Thrift request.
permit
in interface IAuthorizer
context
- request context includes info aboutoperation
- operation nametopoConf
- configuration of targeted topologyCopyright © 2020 The Apache Software Foundation. All rights reserved.