public static class SecureThriftRpcClient.UgiSaslClientTransport
extends org.apache.thrift.transport.TSaslClientTransport
Modifier and Type | Class and Description |
---|---|
protected static class |
org.apache.thrift.transport.TSaslTransport.NegotiationStatus |
protected static class |
org.apache.thrift.transport.TSaslTransport.SaslResponse |
protected static class |
org.apache.thrift.transport.TSaslTransport.SaslRole |
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_MAX_LENGTH |
protected static int |
MECHANISM_NAME_BYTES |
protected static int |
PAYLOAD_LENGTH_BYTES |
protected static int |
STATUS_BYTES |
protected org.apache.thrift.transport.TTransport |
underlyingTransport |
Constructor and Description |
---|
UgiSaslClientTransport(String mechanism,
String authorizationId,
String protocol,
String serverName,
Map<String,String> props,
CallbackHandler cbh,
org.apache.thrift.transport.TTransport transport,
PrivilegedExecutor privilegedExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
open()
Open the SASL transport with using the current UserGroupInformation.
|
protected int |
readLength() |
protected org.apache.thrift.transport.TSaslTransport.SaslResponse |
receiveSaslMessage() |
protected org.apache.thrift.transport.TTransportException |
sendAndThrowMessage(org.apache.thrift.transport.TSaslTransport.NegotiationStatus arg0,
String arg1) |
protected void |
sendSaslMessage(org.apache.thrift.transport.TSaslTransport.NegotiationStatus arg0,
byte[] arg1) |
protected void |
setSaslServer(SaslServer arg0) |
protected void |
writeLength(int arg0) |
getRole, handleSaslStartMessage
protected static final int DEFAULT_MAX_LENGTH
protected static final int MECHANISM_NAME_BYTES
protected static final int STATUS_BYTES
protected static final int PAYLOAD_LENGTH_BYTES
protected org.apache.thrift.transport.TTransport underlyingTransport
public UgiSaslClientTransport(String mechanism, String authorizationId, String protocol, String serverName, Map<String,String> props, CallbackHandler cbh, org.apache.thrift.transport.TTransport transport, PrivilegedExecutor privilegedExecutor) throws IOException
IOException
public void open() throws FlumeException
open
in class org.apache.thrift.transport.TSaslClientTransport
FlumeException
protected void setSaslServer(SaslServer arg0)
protected void sendSaslMessage(org.apache.thrift.transport.TSaslTransport.NegotiationStatus arg0, byte[] arg1) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
protected org.apache.thrift.transport.TSaslTransport.SaslResponse receiveSaslMessage() throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
protected org.apache.thrift.transport.TTransportException sendAndThrowMessage(org.apache.thrift.transport.TSaslTransport.NegotiationStatus arg0, String arg1) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
protected int readLength() throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
protected void writeLength(int arg0) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.