Class 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
    • Constructor Detail

      • UGIAssumingProcessor

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

      • rpcPrincipal

        public static String rpcPrincipal()
        The principal of the user who authenticated over SASL.
      • getRpcPrincipalThreadLocal

        public static ThreadLocal<String> getRpcPrincipalThreadLocal()
      • 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 interface org.apache.thrift.TProcessor
        Throws:
        org.apache.thrift.TException