public class DRPCSimpleACLAuthorizer extends DRPCAuthorizerBase
| Modifier and Type | Class and Description |
|---|---|
static class |
DRPCSimpleACLAuthorizer.AclFunctionEntry |
| Modifier and Type | Field and Description |
|---|---|
protected String |
aclFileName |
static String |
CLIENT_USERS_KEY |
static String |
FUNCTION_KEY |
static String |
INVOCATION_USER_KEY |
static org.slf4j.Logger |
LOG |
protected boolean |
permitWhenMissingFunctionEntry |
protected IPrincipalToLocal |
ptol |
FUNCTION_NAME| Constructor and Description |
|---|
DRPCSimpleACLAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
permitClientOrInvocationRequest(ReqContext context,
Map<String,Object> params,
String fieldName) |
protected boolean |
permitClientRequest(ReqContext context,
String operation,
Map<String,Object> params) |
protected boolean |
permitInvocationRequest(ReqContext context,
String operation,
Map<String,Object> params) |
void |
prepare(Map<String,Object> conf)
Invoked once immediately after construction.
|
protected Map<String,DRPCSimpleACLAuthorizer.AclFunctionEntry> |
readAclFromConfig() |
permitpublic static final org.slf4j.Logger LOG
public static final String CLIENT_USERS_KEY
public static final String INVOCATION_USER_KEY
public static final String FUNCTION_KEY
protected String aclFileName
protected IPrincipalToLocal ptol
protected boolean permitWhenMissingFunctionEntry
protected Map<String,DRPCSimpleACLAuthorizer.AclFunctionEntry> readAclFromConfig()
public void prepare(Map<String,Object> conf)
IAuthorizerInvoked once immediately after construction.
prepare in interface IAuthorizerprepare in class DRPCAuthorizerBaseconf - Storm cluster configurationprotected boolean permitClientOrInvocationRequest(ReqContext context, Map<String,Object> params, String fieldName)
protected boolean permitClientRequest(ReqContext context, String operation, Map<String,Object> params)
permitClientRequest in class DRPCAuthorizerBaseprotected boolean permitInvocationRequest(ReqContext context, String operation, Map<String,Object> params)
permitInvocationRequest in class DRPCAuthorizerBaseCopyright © 2021 The Apache Software Foundation. All rights reserved.