public static void enableVisiblityLabels(Configuration conf) throws IOException {
    conf.setInt("hfile.format.version", 3);
    conf.setBoolean(User.HBASE_SECURITY_AUTHORIZATION_CONF_KEY, true);
    appendCoprocessor(conf, CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY,
      VisibilityController.class.getName());
    appendCoprocessor(conf, CoprocessorHost.REGION_COPROCESSOR_CONF_KEY,
      VisibilityController.class.getName());
  }
Utility methods for testing visibility labels.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/VisibilityTestUtil.java