public static boolean isSuperUserId(String[] superUsers, Id id) {
    for (String user : superUsers) {
      // TODO: Validate super group members also when ZK supports setting node ACL for groups.
      if (!AuthUtil.isGroupPrincipal(user) && new Id("sasl", user).equals(id)) {
        return true;
      }
    }
    return false;
  }
Checks whether the ACLs returned from the base znode (/hbase) is set for secure setup.
@param acls acls from zookeeper
@return whether ACLs are set for the base znode
@throws IOException if getting the current user fails
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKWatcher.java