public static boolean isSecurityAvailable(Configuration conf) throws IOException {
    try (Connection conn = ConnectionFactory.createConnection(conf);
      Admin admin = conn.getAdmin()) {
      return admin.tableExists(PermissionStorage.ACL_TABLE_NAME);
    }
  }
Check if the user is this table snapshot's owner
@param snapshot the table snapshot description
@param user     the user
@return true if the user is the owner of the snapshot, false otherwise or the snapshot owner
        field is not present.
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java