Class SignResult


  • public final class SignResult
    extends java.lang.Object
    Result of one IncrementalPdfSigner.sign(com.pd4ml.pdf.sign.pdf.ByteRangeSigner) call: the signed PDF, and the raw CMS/PKCS#7 signature bytes that were embedded in it (i.e. exactly the /Contents value, before hex-encoding/padding). Callers that only want the signed file can ignore getCmsSignature(); it exists mainly so a follow-up LTV update (see com.pd4ml.pdf.sign.ltv) can compute the PAdES /VRI key -- the hex-uppercase SHA-1 of this exact byte array -- without having to re-parse the output PDF to relocate it.
    • Constructor Summary

      Constructors 
      Constructor Description
      SignResult​(byte[] signedPdf, byte[] cmsSignature)  
    • Constructor Detail

      • SignResult

        public SignResult​(byte[] signedPdf,
                          byte[] cmsSignature)
    • Method Detail

      • getSignedPdf

        public byte[] getSignedPdf()
      • getCmsSignature

        public byte[] getCmsSignature()