public class DRPCSimpleACLAuthorizer extends DRPCAuthorizerBase
Modifier and Type | Class and Description |
---|---|
static class |
DRPCSimpleACLAuthorizer.AclFunctionEntry |
Modifier and Type | Field and Description |
---|---|
protected String |
_aclFileName |
protected boolean |
_permitWhenMissingFunctionEntry |
protected IPrincipalToLocal |
_ptol |
static String |
CLIENT_USERS_KEY |
static String |
FUNCTION_KEY |
static String |
INVOCATION_USER_KEY |
static org.slf4j.Logger |
LOG |
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() |
permit
public 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)
IAuthorizer
Invoked once immediately after construction.
prepare
in interface IAuthorizer
prepare
in class DRPCAuthorizerBase
conf
- 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 DRPCAuthorizerBase
protected boolean permitInvocationRequest(ReqContext context, String operation, Map<String,Object> params)
permitInvocationRequest
in class DRPCAuthorizerBase
Copyright © 2019 The Apache Software Foundation. All rights reserved.