public class PlainSaslTransportPlugin extends SaslTransportPlugin
SaslTransportPlugin.User| Modifier and Type | Field and Description | 
|---|---|
static String | 
PLAIN  | 
login_conf, storm_conf, type| Constructor and Description | 
|---|
PlainSaslTransportPlugin()  | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.thrift.transport.TTransport | 
connect(org.apache.thrift.transport.TTransport transport,
       String serverHost,
       String asUser)
Connect to the specified server via framed transport 
 | 
protected org.apache.thrift.transport.TTransportFactory | 
getServerTransportFactory(boolean impersonationAllowed)
All subclass must implement this method 
 | 
getServer, preparepublic static final String PLAIN
protected org.apache.thrift.transport.TTransportFactory getServerTransportFactory(boolean impersonationAllowed)
                                                                           throws IOException
SaslTransportPluginAll subclass must implement this method
getServerTransportFactory in class SaslTransportPluginimpersonationAllowed - true if SASL impersonation should be allowed, else false.IOExceptionpublic org.apache.thrift.transport.TTransport connect(org.apache.thrift.transport.TTransport transport,
                                                      String serverHost,
                                                      String asUser)
                                               throws IOException,
                                                      org.apache.thrift.transport.TTransportException
ITransportPluginConnect to the specified server via framed transport
transport - The underlying Thrift transport.serverHost - server hostasUser - the user as which the connection should be established, and all the subsequent actions should be executed.  Only applicable when using secure storm cluster. A null/blank value here will just indicate to use the logged in user.IOExceptionorg.apache.thrift.transport.TTransportExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.