Builder
A helper class used for building the SignerOptions.
Creates a new Builder for creating the SignerOptions object to pass to the SigningManager. This allows for a custom DataProvider for the output. For a simpler Uri API, use the other constructor.
Parameters
Signature form field to be signed.
DataProvider where the signed document will be written.
Constructors
Creates a new Builder for creating the SignerOptions object to pass to the SigningManager. For more customisation for the output file, use the other DataProvider constructor.
Functions
Build the SignerOptions object from the provided properties.
Optionally add the certificates in the chain used for signing. If empty, we will get them from the private key set in setPrivateKey
Enable or disable embedding Long-Term-Validation (LTV) in the signature which upgrades signature to PAdES B-LT. LTV will check each certificate for validity and if successful will keep that information in the document. LTV information can also be added later using com.pspdfkit.document.PdfDocument.addLongTermValidation. Note, enabling LTV may result in an HTTP network call which may result in you needing to enable the use of cleartext traffic in your app.
Optionally setPrivateKey inserts Private key for signing PDF. Use this if you want PSPDFKit to do the document signing. Otherwise you need to overwrite the custom signing lambda in SigningManager.signDocument
DigitalSignatureMetadata that contains additional metadata to add to the signature.
DigitalSignatureType type can be either BASIC or CADES (default).