public class DRPCSimpleACLAuthorizer extends DRPCAuthorizerBase
Modifier and Type | Class and Description |
---|---|
protected 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 params,
String fieldName) |
protected boolean |
permitClientRequest(ReqContext context,
String operation,
Map params) |
protected boolean |
permitInvocationRequest(ReqContext context,
String operation,
Map params) |
void |
prepare(Map 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 conf)
IAuthorizer
Invoked once immediately after construction
prepare
in interface IAuthorizer
prepare
in class DRPCAuthorizerBase
conf
- Storm configurationprotected boolean permitClientOrInvocationRequest(ReqContext context, Map params, String fieldName)
protected boolean permitClientRequest(ReqContext context, String operation, Map params)
permitClientRequest
in class DRPCAuthorizerBase
protected boolean permitInvocationRequest(ReqContext context, String operation, Map params)
permitInvocationRequest
in class DRPCAuthorizerBase
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.