public class ImpersonationAuthorizer extends Object implements IAuthorizer
Modifier and Type | Class and Description |
---|---|
protected static class |
ImpersonationAuthorizer.ImpersonationACL |
Modifier and Type | Field and Description |
---|---|
protected IGroupMappingServiceProvider |
groupMappingProvider |
protected IPrincipalToLocal |
ptol |
protected Map<String,ImpersonationAuthorizer.ImpersonationACL> |
userImpersonationACL |
protected static String |
WILD_CARD |
Constructor and Description |
---|
ImpersonationAuthorizer() |
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.
|
protected static final String WILD_CARD
protected Map<String,ImpersonationAuthorizer.ImpersonationACL> userImpersonationACL
protected IPrincipalToLocal ptol
protected IGroupMappingServiceProvider groupMappingProvider
public void prepare(Map<String,Object> conf)
IAuthorizer
Invoked once immediately after construction.
prepare
in interface IAuthorizer
conf
- Storm cluster configurationpublic boolean permit(ReqContext context, String operation, Map<String,Object> topoConf)
IAuthorizer
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 © 2022 The Apache Software Foundation. All rights reserved.