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 Details

  • Constructor Details

    • UGIAssumingProcessor

      public UGIAssumingProcessor(org.apache.thrift.TProcessor wrapped)
  • Method Details

    • 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 void process(org.apache.thrift.protocol.TProtocol inProt, org.apache.thrift.protocol.TProtocol outProt) throws org.apache.thrift.TException
      Specified by:
      process in interface org.apache.thrift.TProcessor
      Throws:
      org.apache.thrift.TException