public abstract class DRPCAuthorizerBase extends Object implements IAuthorizer
Modifier and Type | Field and Description |
---|---|
static String |
FUNCTION_NAME
A key name for the function requested to be executed by a user.
|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DRPCAuthorizerBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
permit(ReqContext context,
String operation,
Map<String,Object> params)
Authorizes request from to the DRPC server.
|
protected abstract boolean |
permitClientRequest(ReqContext context,
String operation,
Map<String,Object> params) |
protected abstract boolean |
permitInvocationRequest(ReqContext context,
String operation,
Map<String,Object> params) |
abstract void |
prepare(Map<String,Object> conf)
Invoked once immediately after construction.
|
public static final org.slf4j.Logger LOG
public static final String FUNCTION_NAME
A key name for the function requested to be executed by a user.
public abstract void prepare(Map<String,Object> conf)
IAuthorizer
Invoked once immediately after construction.
prepare
in interface IAuthorizer
conf
- Storm cluster configurationprotected abstract boolean permitClientRequest(ReqContext context, String operation, Map<String,Object> params)
protected abstract boolean permitInvocationRequest(ReqContext context, String operation, Map<String,Object> params)
public boolean permit(ReqContext context, String operation, Map<String,Object> params)
Authorizes request from to the DRPC server.
permit
in interface IAuthorizer
context
- the client request contextoperation
- the operation requested by the DRPC serverparams
- a Map with any key-value entries of use to the authorization implementationCopyright © 2022 The Apache Software Foundation. All rights reserved.