public class SigningService extends Object
The service expects the existence of a valid X509 certificate stored in the keystore.
The service supports the following environment variables:
See also here: https://jvmfy.com/2018/11/17/how-to-digitally-sign-pdf-files/ https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature2.java https://ordina-jworks.github.io/security/2019/08/14/Using-Lets-Encrypt-Certificates-In-Java.html
| Modifier and Type | Field and Description |
|---|---|
static String |
ENV_SIGNATURE_ROOTCERT_ALIAS |
static String |
ENV_SIGNATURE_ROOTCERT_PASSWORD |
static String |
ENV_SIGNATURE_TSA_URL |
| Constructor and Description |
|---|
SigningService() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.FileData |
signPDF(org.imixs.workflow.FileData inputFileData,
String certAlias,
String certPassword,
File signatureImage)
Method Opens the keystore with the given password and creates a new signed
PDF file based on the given PDF File and a signature image.
|
public static final String ENV_SIGNATURE_TSA_URL
public static final String ENV_SIGNATURE_ROOTCERT_ALIAS
public static final String ENV_SIGNATURE_ROOTCERT_PASSWORD
public org.imixs.workflow.FileData signPDF(org.imixs.workflow.FileData inputFileData,
String certAlias,
String certPassword,
File signatureImage)
throws CertificateVerificationException,
SigningException
generate pkcs12-keystore-file with
keytool -storepass 123456 -storetype PKCS12 -keystore file.p12 -genkey -alias client -keyalg RSA
documentFile - - File to be signedalias - - the alias used to sign the document. The alias should
be listed in the keystore.signatureImage - - image of visible signatureSigningExceptionCertificateVerificationExceptionCopyright © 2016–2020 Imixs Software Solutions GmbH. All rights reserved.