Class DRPCAuthorizerBase
java.lang.Object
org.apache.storm.security.auth.authorizer.DRPCAuthorizerBase
- All Implemented Interfaces:
- IAuthorizer
- Direct Known Subclasses:
- DRPCSimpleACLAuthorizer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringA key name for the function requested to be executed by a user.static final org.slf4j.Logger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanAuthorizes request from to the DRPC server.protected abstract booleanpermitClientRequest(ReqContext context, String operation, Map<String, Object> params) protected abstract booleanpermitInvocationRequest(ReqContext context, String operation, Map<String, Object> params) abstract voidInvoked once immediately after construction.
- 
Field Details- 
LOGpublic static final org.slf4j.Logger LOG
- 
FUNCTION_NAMEA key name for the function requested to be executed by a user.- See Also:
 
 
- 
- 
Constructor Details- 
DRPCAuthorizerBasepublic DRPCAuthorizerBase()
 
- 
- 
Method Details- 
prepareDescription copied from interface:IAuthorizerInvoked once immediately after construction.- Specified by:
- preparein interface- IAuthorizer
- Parameters:
- conf- Storm cluster configuration
 
- 
permitClientRequestprotected abstract boolean permitClientRequest(ReqContext context, String operation, Map<String, Object> params) 
- 
permitInvocationRequestprotected abstract boolean permitInvocationRequest(ReqContext context, String operation, Map<String, Object> params) 
- 
permitAuthorizes request from to the DRPC server.- Specified by:
- permitin interface- IAuthorizer
- Parameters:
- context- the client request context
- operation- the operation requested by the DRPC server
- params- a Map with any key-value entries of use to the authorization implementation
- Returns:
- true if the request is authorized, false if reject
 
 
-