public Map<String, String> getSaslProperties() {
    Map<String, String> saslProps = new HashMap<String, String>();
    SaslQOP saslQOP = SaslQOP.fromString(conf.getVar(ConfVars.HIVE_SERVER2_THRIFT_SASL_QOP));
    saslProps.put(Sasl.QOP, saslQOP.toString());
    saslProps.put(Sasl.SERVER_AUTH, "true");
    return saslProps;
  }
This class helps in some aspects of authentication. It creates the proper Thrift classes for the
given configuration as well as helps with authenticating requests.
service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java