public static void revokeGlobalUsingAccessControlClient(final HBaseTestingUtil util,
    final Connection connection, final String user, final Permission.Action... actions)
    throws Exception {
    SecureTestUtil.updateACLs(util, new Callable<Void>() {
      @Override
      public Void call() throws Exception {
        try {
          AccessControlClient.revoke(connection, user, actions);
        } catch (Throwable t) {
          LOG.error("revoke failed: ", t);
        }
        return null;
      }
    });
  }
Revoke global permissions from the given user using AccessControlClient. Will wait until all
active AccessController instances have updated their permissions caches or will throw an
exception upon timeout (10 seconds).
hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/SecureTestUtil.java