backtype.storm.security.auth
Class SaslTransportPlugin

java.lang.Object
  extended by backtype.storm.security.auth.SaslTransportPlugin
All Implemented Interfaces:
ITransportPlugin
Direct Known Subclasses:
DigestSaslTransportPlugin

public abstract class SaslTransportPlugin
extends Object
implements ITransportPlugin

Base class for SASL authentication plugin.


Nested Class Summary
static class SaslTransportPlugin.User
           
 
Field Summary
protected  Configuration login_conf
           
 
Constructor Summary
SaslTransportPlugin()
           
 
Method Summary
 org.apache.thrift.server.TServer getServer(int port, org.apache.thrift.TProcessor processor)
          Create a server associated with a given port and service handler
protected abstract  org.apache.thrift.transport.TTransportFactory getServerTransportFactory()
          All subclass must implement this method
 void prepare(Map storm_conf, Configuration login_conf)
          Invoked once immediately after construction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface backtype.storm.security.auth.ITransportPlugin
connect
 

Field Detail

login_conf

protected Configuration login_conf
Constructor Detail

SaslTransportPlugin

public SaslTransportPlugin()
Method Detail

prepare

public void prepare(Map storm_conf,
                    Configuration login_conf)
Invoked once immediately after construction

Specified by:
prepare in interface ITransportPlugin
Parameters:
conf - Storm configuration
login_conf - login configuration

getServer

public org.apache.thrift.server.TServer getServer(int port,
                                                  org.apache.thrift.TProcessor processor)
                                           throws IOException,
                                                  org.apache.thrift.transport.TTransportException
Description copied from interface: ITransportPlugin
Create a server associated with a given port and service handler

Specified by:
getServer in interface ITransportPlugin
Parameters:
port - listening port
processor - service handler
Returns:
server to be binded
Throws:
IOException
org.apache.thrift.transport.TTransportException

getServerTransportFactory

protected abstract org.apache.thrift.transport.TTransportFactory getServerTransportFactory()
                                                                                    throws IOException
All subclass must implement this method

Returns:
Throws:
IOException


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