public static boolean isAuthorizationEnabled(Connection connection) throws IOException {
    return connection.getAdmin().getSecurityCapabilities()
      .contains(SecurityCapability.AUTHORIZATION);
  }
Return true if authorization is supported and enabled
@param connection The connection to use
@return true if authorization is supported and enabled, false otherwise
hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlClient.java