Class ImpersonationAuthorizer
java.lang.Object
org.apache.storm.security.auth.authorizer.ImpersonationAuthorizer
- All Implemented Interfaces:
IAuthorizer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected IGroupMappingServiceProvider
protected IPrincipalToLocal
protected Map<String,
ImpersonationAuthorizer.ImpersonationACL> protected static final String
-
Constructor Summary
-
Method Summary
-
Field Details
-
WILD_CARD
- See Also:
-
userImpersonationACL
-
ptol
-
groupMappingProvider
-
-
Constructor Details
-
ImpersonationAuthorizer
public ImpersonationAuthorizer()
-
-
Method Details
-
prepare
Description copied from interface:IAuthorizer
Invoked once immediately after construction.- Specified by:
prepare
in interfaceIAuthorizer
- Parameters:
conf
- Storm cluster configuration
-
permit
Description copied from interface:IAuthorizer
permit() method is invoked for each incoming Thrift request.- Specified by:
permit
in interfaceIAuthorizer
- Parameters:
context
- request context includes info aboutoperation
- operation nametopoConf
- configuration of targeted topology- Returns:
- true if the request is authorized, false if reject
-