public static boolean isCellVisibilityEnabled(Connection connection) throws IOException {
    return connection.getAdmin().getSecurityCapabilities()
      .contains(SecurityCapability.CELL_VISIBILITY);
  }
Return true if cell visibility features are supported and enabled
@param connection The connection to use
@return true if cell visibility features are supported and enabled, false otherwise
hbase-client/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityClient.java