public class KerberosSaslTransportPlugin extends SaslTransportPlugin
SaslTransportPlugin.User
Modifier and Type | Field and Description |
---|---|
static String |
KERBEROS |
conf, type
Constructor and Description |
---|
KerberosSaslTransportPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
areWorkerTokensSupported()
Check if worker tokens are supported by this transport.
|
void |
close() |
org.apache.storm.thrift.transport.TTransport |
connect(org.apache.storm.thrift.transport.TTransport transport,
String serverHost,
String asUser)
Connect to the specified server via framed transport.
|
org.apache.storm.thrift.transport.TTransportFactory |
getServerTransportFactory(boolean impersonationAllowed)
Create the transport factory needed for serving.
|
getPort, getServer, prepare
public static final String KERBEROS
public 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
public boolean areWorkerTokensSupported()
ITransportPlugin
Check if worker tokens are supported by this transport.
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class SaslTransportPlugin
Copyright © 2020 The Apache Software Foundation. All rights reserved.