Package org.apache.accumulo.server.rpc
Class UGIAssumingProcessor
- java.lang.Object
-
- org.apache.accumulo.server.rpc.UGIAssumingProcessor
-
- All Implemented Interfaces:
org.apache.thrift.TProcessor
public class UGIAssumingProcessor extends Object implements 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
Fields Modifier and Type Field Description static ThreadLocal<SaslConnectionParams.SaslMechanism>
rpcMechanism
static ThreadLocal<String>
rpcPrincipal
-
Constructor Summary
Constructors Constructor Description UGIAssumingProcessor(org.apache.thrift.TProcessor wrapped)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThreadLocal<String>
getRpcPrincipalThreadLocal()
boolean
process(org.apache.thrift.protocol.TProtocol inProt, org.apache.thrift.protocol.TProtocol outProt)
static SaslConnectionParams.SaslMechanism
rpcMechanism()
static String
rpcPrincipal()
The principal of the user who authenticated over SASL.
-
-
-
Field Detail
-
rpcPrincipal
public static final ThreadLocal<String> rpcPrincipal
-
rpcMechanism
public static final ThreadLocal<SaslConnectionParams.SaslMechanism> rpcMechanism
-
-
Method Detail
-
rpcPrincipal
public static String rpcPrincipal()
The principal of the user who authenticated over SASL.
-
getRpcPrincipalThreadLocal
public static ThreadLocal<String> getRpcPrincipalThreadLocal()
-
rpcMechanism
public static SaslConnectionParams.SaslMechanism rpcMechanism()
-
process
public boolean 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
-
-