Class SimpleACLAuthorizer
java.lang.Object
org.apache.storm.security.auth.authorizer.SimpleACLAuthorizer
- All Implemented Interfaces:
IAuthorizer
An authorization implementation that simply checks if a user is allowed to perform specific operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IGroupMappingServiceProviderprotected IPrincipalToLocal -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
userCommands
-
supervisorCommands
-
topoReadOnlyCommands
-
topoCommands
-
admins
-
adminsGroups
-
supervisors
-
nimbusUsers
-
nimbusGroups
-
ptol
-
groupMappingServiceProvider
-
-
Constructor Details
-
SimpleACLAuthorizer
public SimpleACLAuthorizer()
-
-
Method Details
-
prepare
Invoked once immediately after construction.- Specified by:
preparein interfaceIAuthorizer- Parameters:
conf- Storm configuration
-
permit
permit() method is invoked for each incoming Thrift request.- Specified by:
permitin interfaceIAuthorizer- Parameters:
context- request context includes info aboutoperation- operation nametopoConf- configuration of targeted topology- Returns:
- true if the request is authorized, false if reject
-