@Deprecated public class PlainSaslTransportPlugin extends SaslTransportPlugin
This should never be used except for testing. It provides no security at all. The password is hard coded, and even if it were not it is sent in plain text.
SaslTransportPlugin.User
Modifier and Type | Field and Description |
---|---|
static String |
PLAIN
Deprecated.
|
conf, type
Constructor and Description |
---|
PlainSaslTransportPlugin()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.apache.storm.thrift.transport.TTransport |
connect(org.apache.storm.thrift.transport.TTransport transport,
String serverHost,
String asUser)
Deprecated.
Connect to the specified server via framed transport.
|
protected org.apache.storm.thrift.transport.TTransportFactory |
getServerTransportFactory(boolean impersonationAllowed)
Deprecated.
Create the transport factory needed for serving.
|
close, getPort, getServer, prepare
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areWorkerTokensSupported
public static final String PLAIN
protected org.apache.storm.thrift.transport.TTransportFactory getServerTransportFactory(boolean impersonationAllowed) throws IOException
SaslTransportPlugin
Create the transport factory needed for serving. All subclass must implement this method.
getServerTransportFactory
in class SaslTransportPlugin
impersonationAllowed
- true if SASL impersonation should be allowed, else false.IOException
- on any error.public org.apache.storm.thrift.transport.TTransport connect(org.apache.storm.thrift.transport.TTransport transport, String serverHost, String asUser) throws IOException, org.apache.storm.thrift.transport.TTransportException
ITransportPlugin
Connect 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.IOException
org.apache.storm.thrift.transport.TTransportException
Copyright © 2022 The Apache Software Foundation. All rights reserved.