Package org.apache.accumulo.server.rpc
Class UGIAssumingProcessor
java.lang.Object
org.apache.accumulo.server.rpc.UGIAssumingProcessor
- All Implemented Interfaces:
org.apache.thrift.TProcessor
Processor that pulls the SaslServer object out of the transport, and assumes the remote user's
UGI before calling through to the original processor.
This is used on the server side to set the UGI for each specific call.
Lifted from Apache Hive 0.14
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ThreadLocal<SaslConnectionParams.SaslMechanism>
static final ThreadLocal<String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadLocal<String>
void
process
(org.apache.thrift.protocol.TProtocol inProt, org.apache.thrift.protocol.TProtocol outProt) static String
The principal of the user who authenticated over SASL.
-
Field Details
-
rpcPrincipal
-
rpcMechanism
-
-
Constructor Details
-
UGIAssumingProcessor
public UGIAssumingProcessor(org.apache.thrift.TProcessor wrapped)
-
-
Method Details
-
rpcPrincipal
The principal of the user who authenticated over SASL. -
getRpcPrincipalThreadLocal
-
rpcMechanism
-
process
public void process(org.apache.thrift.protocol.TProtocol inProt, org.apache.thrift.protocol.TProtocol outProt) throws org.apache.thrift.TException - Specified by:
process
in interfaceorg.apache.thrift.TProcessor
- Throws:
org.apache.thrift.TException
-