Builder

class Builder(signatureFormField: SignatureFormField, outputDataProvider: DataProvider)

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

signatureFormField

Signature form field to be signed.

outputDataProvider

DataProvider where the signed document will be written.

Constructors

Link copied to clipboard
constructor(signatureFormField: SignatureFormField, outputFileUri: Uri)

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.

constructor(signatureFormField: SignatureFormField, outputDataProvider: DataProvider)

Functions

Link copied to clipboard

Build the SignerOptions object from the provided properties.

Link copied to clipboard

Optionally add the certificates in the chain used for signing. If empty, we will get them from the private key set in setPrivateKey

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

DigitalSignatureMetadata that contains additional metadata to add to the signature.

Link copied to clipboard

DigitalSignatureType type can be either BASIC or CADES (default).