public abstract class SaslTransportPlugin extends Object implements ITransportPlugin
Base class for SASL authentication plugin.
| Modifier and Type | Class and Description |
|---|---|
static class |
SaslTransportPlugin.User |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
conf |
protected Configuration |
loginConf |
protected ThriftConnectionType |
type |
| Constructor and Description |
|---|
SaslTransportPlugin() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort() |
org.apache.storm.thrift.server.TServer |
getServer(org.apache.storm.thrift.TProcessor processor)
Create a server associated with a given port, service handler, and purpose
|
protected abstract org.apache.storm.thrift.transport.TTransportFactory |
getServerTransportFactory(boolean impersonationAllowed)
Create the transport factory needed for serving.
|
void |
prepare(ThriftConnectionType type,
Map<String,Object> conf,
Configuration loginConf)
Invoked once immediately after construction
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareWorkerTokensSupported, connectprotected ThriftConnectionType type
protected Configuration loginConf
public void prepare(ThriftConnectionType type, Map<String,Object> conf, Configuration loginConf)
ITransportPluginInvoked once immediately after construction
prepare in interface ITransportPlugintype - the type of connection this will process.conf - Storm configurationloginConf - login configurationpublic org.apache.storm.thrift.server.TServer getServer(org.apache.storm.thrift.TProcessor processor)
throws IOException,
org.apache.storm.thrift.transport.TTransportException
ITransportPluginCreate a server associated with a given port, service handler, and purpose
getServer in interface ITransportPluginprocessor - service handlerIOExceptionorg.apache.storm.thrift.transport.TTransportExceptionprotected abstract org.apache.storm.thrift.transport.TTransportFactory getServerTransportFactory(boolean impersonationAllowed)
throws IOException
Create the transport factory needed for serving. All subclass must implement this method.
impersonationAllowed - true if SASL impersonation should be allowed, else false.IOException - on any error.public int getPort()
getPort in interface ITransportPluginITransportPlugin.getServer(org.apache.storm.thrift.TProcessor) has been called.Copyright © 2019 The Apache Software Foundation. All rights reserved.