Class DigitalSignatureInfo

    • Constructor Detail

      • DigitalSignatureInfo

        DigitalSignatureInfo(InternalPdfDocument document, int documentSourceIndex, NativeFormField signedFormField)
        Intended for internal usage only.
      • DigitalSignatureInfo

        DigitalSignatureInfo(DigitalSignatureInfo digitalSignatureInfo)
        Intended for internal usage only.
    • Method Detail

      • getName

        @Nullable() String getName()

        Returns name of the signer of this signature. May be null no name is stored in the signature.

        Returns:

        Name of the signer, or null.

      • getContents

        @Nullable() Array<byte> getContents()

        Returns actual byte content of this signature in PDF file.

        Returns:

        content of the signature or null if there's actually no signature attached to signature field.

      • getByteRange

        @Nullable() List<Long> getByteRange()

        Returns 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 method will return four elements because of that: [offset_of_part_before_signature, length_of_part_before_signature, offset_of_part_after_signature, length_of_part_after_signature].

        To fully verify the integrity of the document, the both parts and contents of this signature should span full size of the document.

        Returns:

        a list representing the byte range.

      • getCreationDate

        @Nullable() Calendar getCreationDate()

        Returns date of creation of this signature in UTC timezone. May be null if no creation date is stored in the signature.

        Returns:

        Creation date in UTC timezone, or null.

      • getReason

        @Nullable() String getReason()

        Returns reason for signing if the signer attached it.

        Returns:

        reason for signing, can be null.

      • getLocation

        @Nullable() String getLocation()

        Returns location for signing if the signer attached it.

        Returns:

        location for signing, can be null.

      • getFilter

        @Nullable() String getFilter()

        Returns name of the filter used for signing.

        Returns:

        signing filter, can be null.

      • getSubFilter

        @Nullable() String getSubFilter()

        Returns name of the subfilter used for signing.

        Returns:

        signing subfilter, can be null.

      • isSigned

         boolean isSigned()

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

        Returns:

        true if this digital signature actually has contents.