Class DRPCAuthorizerBase
java.lang.Object
org.apache.storm.security.auth.authorizer.DRPCAuthorizerBase
- All Implemented Interfaces:
IAuthorizer
- Direct Known Subclasses:
DRPCSimpleACLAuthorizer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
A key name for the function requested to be executed by a user.static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Invoked once immediately after construction.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
FUNCTION_NAME
A key name for the function requested to be executed by a user.- See Also:
-
-
Constructor Details
-
DRPCAuthorizerBase
public DRPCAuthorizerBase()
-
-
Method Details
-
prepare
Description copied from interface:IAuthorizer
Invoked once immediately after construction.- Specified by:
prepare
in interfaceIAuthorizer
- Parameters:
conf
- Storm cluster configuration
-
permitClientRequest
protected abstract boolean permitClientRequest(ReqContext context, String operation, Map<String, Object> params) -
permitInvocationRequest
protected abstract boolean permitInvocationRequest(ReqContext context, String operation, Map<String, Object> params) -
permit
Authorizes request from to the DRPC server.- Specified by:
permit
in interfaceIAuthorizer
- Parameters:
context
- the client request contextoperation
- the operation requested by the DRPC serverparams
- a Map with any key-value entries of use to the authorization implementation- Returns:
- true if the request is authorized, false if reject
-