DigitalSignatureInfo

open class DigitalSignatureInfo(internalDocument: InternalPdfDocument, documentSourceIndex: Int, signedFormField: NativeFormField)

A digital signature stored inside a PDF document. This can be retrieved by calling SignatureFormField.signatureInfo. As a convenience to check the signing status of a document, you can retrieve the DocumentSignatureInfo by calling com.pspdfkit.document.PdfDocument.getDocumentSignatureInfoAsync.

Parameters

documentSourceIndex

Index of the signed com.pspdfkit.document.DocumentSource of the signed compound document. A signature can only sign a single data source.

Constructors

Link copied to clipboard
constructor(internalDocument: InternalPdfDocument, documentSourceIndex: Int, signedFormField: NativeFormField)

Types

Link copied to clipboard
data class BuildData

Build data dictionary of a software that created the digital signature.

Link copied to clipboard
object Companion

Keys for the BuildData entries returned by buildProperties.

Link copied to clipboard
data class Reference

Signature reference dictionary. This dictionary contains the object digest result, including information about how it was computed.

Link copied to clipboard

List of possible transformation methods of a Reference.

Properties

Link copied to clipboard
Link copied to clipboard

Range of bytes this signature covers. Signatures cover two parts of a document: the part before the signature and the part after the signature. This will contain four elements: offset_of_part_before_signature, length_of_part_before_signature, offset_of_part_after_signature, length_of_part_after_signature.

Link copied to clipboard

Actual byte content of this signature in the PDF file, or null if there's actually no signature attached to the signature field.

Link copied to clipboard

Creation date of this signature in the UTC timezone, or null if none is stored.

Link copied to clipboard

The PdfDocument with which this signature info is associated.

Link copied to clipboard

Name of the filter used for signing, can be null.

Link copied to clipboard

Returns if the form field is actually signed. Note that this DOES NOT check if the signature is actually valid. Signature validity must be checked with the validate call.

Link copied to clipboard

Location for signing if the signer attached it, can be null.

Link copied to clipboard
val name: String?

Name of the signer of this signature, or null if no name is stored in the signature.

Link copied to clipboard

Reason for signing if the signer attached it, can be null.

Link copied to clipboard

List of signature reference dictionaries. These references contain object digest results and information about how they were computed, and can be used to verify the integrity of specific parts of the document. Empty if no references exist.

Link copied to clipboard

Name of the subfilter used for signing, can be null.

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this digital signature info for debugging purposes.

Link copied to clipboard

Checks the actual validity of the signature and returns a DigitalSignatureValidationResult. This check will use certificates from TrustedKeyStore for validating the certificate of this signature and will also check for integrity issues. This function is main-safe: it suspends and runs the validation work on kotlinx.coroutines.Dispatchers.IO internally.