Add custom QZ Tray fork with pairing key authentication

- Custom fork of QZ Tray 2.2.x with certificate validation bypassed
- Implemented pairing key (HMAC) authentication as replacement
- Modified files: PrintSocketClient.java (certificate check disabled)
- New files: PairingAuth.java, PairingConfigDialog.java
- Excluded build artifacts (out/, lib/javafx*) from repository
- Library JARs included for dependency management
This commit is contained in:
2025-10-02 02:27:45 +03:00
parent 755400a269
commit c7266c32ee
444 changed files with 63195 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
package tests.qz.printer.info;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import qz.printer.PrintServiceMatcher;
import qz.printer.info.NativePrinter;
import qz.printer.info.NativePrinterMap;
import java.util.Date;
public class NativePrinterTests {
private static final Logger log = LogManager.getLogger(NativePrinterTests.class);
public static void main(String ... args) {
for (int i = 0; i < 10; i++) {
runTest();
}
}
private static void runTest() {
Date begin = new Date();
NativePrinterMap printers = PrintServiceMatcher.getNativePrinterList();
StringBuilder output = new StringBuilder("Found printers:\n");
for (NativePrinter printer : printers.values()) {
output.append(String.format(" printerId: '%s', description: '%s', driverFile: '%s', " +
"resolution: '%s', driver: '%s'\n",
printer.getPrinterId(),
printer.getDescription(),
printer.getDriverFile(),
printer.getResolution(),
printer.getDriver()
));
}
Date end = new Date();
log.debug(output.toString());
log.debug("Time to find printers: " + (end.getTime() - begin.getTime()));
}
}