FileRequest fileRequest = new FileRequest(pdfFile, client);
ValidationServiceClient serviceClient = ValidationServiceClientBuilder.newBuilder() //
.serviceUrl(serviceUrl) //
.build();
ValidationResponse response = serviceClient.validateOneRequest(Arrays.asList(fileRequest), false, null, null, "de", null);
ValidationServiceClient serviceClient = ValidationServiceClientBuilder.newBuilder() //
.serviceUrl(serviceUrl) //
.build();
ValidationResponse response = serviceClient.validateOneSignature(pdfBytes, client, false, sigName,
"file.pdf", null, null, "de", null);
FileRequest fileRequest = new FileRequest(pdfFile, client);
ValidationServiceClient serviceClient = ValidationServiceClientBuilder.newBuilder() //
.serviceUrl(serviceUrl) //
.build();
ValidationResponse response = serviceClient.validateOneRequest(Arrays.asList(fileRequest), true, null, null, "de", "report.pdf");
File file = new File(response.getPdfOutputFileName());
try (OutputStream stream = new FileOutputStream(file)) {
stream.write(response.getPdfReport());
}