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() |
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
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 © 2023 The Apache Software Foundation. All rights reserved.