backtype.storm.security.auth
Class SaslTransportPlugin
java.lang.Object
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.
|
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 |
login_conf
protected Configuration login_conf
SaslTransportPlugin
public SaslTransportPlugin()
prepare
public void prepare(Map storm_conf,
Configuration login_conf)
- Invoked once immediately after construction
- Specified by:
prepare in interface ITransportPlugin
- Parameters:
conf - Storm configurationlogin_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 portprocessor - 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.