backtype.storm.security.auth.authorizer
Class NoopAuthorizer

java.lang.Object
  extended by backtype.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
NoopAuthorizer()
           
 
Method Summary
 boolean permit(ReqContext context, String operation, Map topology_conf)
          permit() method is invoked for each incoming Thrift request
 void prepare(Map conf)
          Invoked once immediately after construction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoopAuthorizer

public NoopAuthorizer()
Method Detail

prepare

public void prepare(Map conf)
Invoked once immediately after construction

Specified by:
prepare in interface IAuthorizer
Parameters:
conf - Storm configuration

permit

public boolean permit(ReqContext context,
                      String operation,
                      Map topology_conf)
permit() method is invoked for each incoming Thrift request

Specified by:
permit in interface IAuthorizer
Parameters:
context - request context includes info about
operation - operation name
topology_storm - configuration of targeted topology
Returns:
true if the request is authorized, false if reject


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.