private static boolean validateCFAndCQ(byte[] permFamily, byte[] cf, byte[] permQualifier,
    byte[] cq) {
    boolean include = true;
    if (cf != null) {
      if (Bytes.equals(cf, permFamily)) {
        if (cq != null && !Bytes.equals(cq, permQualifier)) {
          // if CQ specified and didn't match then ignore this cell
          include = false;
        }
      } else {
        // if CF specified and didn't match then ignore this cell
        include = false;
      }
    }
    return include;
  }
Parse and filter permission based on the specified column family, column qualifier and user
name.
hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/PermissionStorage.java