public static boolean isHBaseSecurityEnabled(Configuration conf) {
    return "kerberos".equalsIgnoreCase(conf.get(HBASE_SECURITY_CONF_KEY));
  }
Returns whether or not secure authentication is enabled for HBase. Note that HBase security
requires HDFS security to provide any guarantees, so it is recommended that secure HBase should
run on secure HDFS.
hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java