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 Configuration |
login_conf |
protected Map |
storm_conf |
protected ThriftConnectionType |
type |
Constructor and Description |
---|
SaslTransportPlugin() |
Modifier and Type | Method and Description |
---|---|
org.apache.thrift.server.TServer |
getServer(org.apache.thrift.TProcessor processor)
Create a server associated with a given port, service handler, and purpose
|
protected abstract org.apache.thrift.transport.TTransportFactory |
getServerTransportFactory(boolean impersonationAllowed)
All subclass must implement this method
|
void |
prepare(ThriftConnectionType type,
Map storm_conf,
Configuration login_conf)
Invoked once immediately after construction
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect
protected ThriftConnectionType type
protected Map storm_conf
protected Configuration login_conf
public void prepare(ThriftConnectionType type, Map storm_conf, Configuration login_conf)
ITransportPlugin
Invoked once immediately after construction
prepare
in interface ITransportPlugin
type
- the type of connection this will process.storm_conf
- Storm configurationlogin_conf
- login configurationpublic org.apache.thrift.server.TServer getServer(org.apache.thrift.TProcessor processor) throws IOException, org.apache.thrift.transport.TTransportException
ITransportPlugin
Create a server associated with a given port, service handler, and purpose
getServer
in interface ITransportPlugin
processor
- service handlerIOException
org.apache.thrift.transport.TTransportException
protected abstract org.apache.thrift.transport.TTransportFactory getServerTransportFactory(boolean impersonationAllowed) throws IOException
All subclass must implement this method
impersonationAllowed
- true if SASL impersonation should be allowed, else false.IOException
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.