Class NoopAuthorizer
- java.lang.Object
-
- org.apache.storm.security.auth.authorizer.NoopAuthorizer
-
- All Implemented Interfaces:
IAuthorizer
public class NoopAuthorizer extends Object implements IAuthorizer
A no-op authorization implementation that illustrate info available for authorization decisions.
-
-
Constructor Summary
Constructors Constructor Description NoopAuthorizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanpermit(ReqContext context, String operation, Map<String,Object> topoConf)permit() method is invoked for each incoming Thrift request.voidprepare(Map<String,Object> conf)Invoked once immediately after construction.
-
-
-
Method Detail
-
prepare
public void prepare(Map<String,Object> conf)
Invoked once immediately after construction.- Specified by:
preparein interfaceIAuthorizer- Parameters:
conf- Storm configuration
-
permit
public boolean permit(ReqContext context, String operation, Map<String,Object> topoConf)
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
-
-