Class DRPCSimpleACLAuthorizer
java.lang.Object
org.apache.storm.security.auth.authorizer.DRPCAuthorizerBase
org.apache.storm.security.auth.authorizer.DRPCSimpleACLAuthorizer
- All Implemented Interfaces:
IAuthorizer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
static final String
static final String
static final String
static final org.slf4j.Logger
protected boolean
protected IPrincipalToLocal
Fields inherited from class org.apache.storm.security.auth.authorizer.DRPCAuthorizerBase
FUNCTION_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Invoked once immediately after construction.protected Map<String,
DRPCSimpleACLAuthorizer.AclFunctionEntry> Methods inherited from class org.apache.storm.security.auth.authorizer.DRPCAuthorizerBase
permit
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
CLIENT_USERS_KEY
- See Also:
-
INVOCATION_USER_KEY
- See Also:
-
FUNCTION_KEY
- See Also:
-
aclFileName
-
ptol
-
permitWhenMissingFunctionEntry
protected boolean permitWhenMissingFunctionEntry
-
-
Constructor Details
-
DRPCSimpleACLAuthorizer
public DRPCSimpleACLAuthorizer()
-
-
Method Details
-
readAclFromConfig
-
prepare
Description copied from interface:IAuthorizer
Invoked once immediately after construction.- Specified by:
prepare
in interfaceIAuthorizer
- Specified by:
prepare
in classDRPCAuthorizerBase
- Parameters:
conf
- Storm cluster configuration
-
permitClientOrInvocationRequest
protected boolean permitClientOrInvocationRequest(ReqContext context, Map<String, Object> params, String fieldName) -
permitClientRequest
protected boolean permitClientRequest(ReqContext context, String operation, Map<String, Object> params) - Specified by:
permitClientRequest
in classDRPCAuthorizerBase
-
permitInvocationRequest
protected boolean permitInvocationRequest(ReqContext context, String operation, Map<String, Object> params) - Specified by:
permitInvocationRequest
in classDRPCAuthorizerBase
-