Package com.pd4ml.pdf.sign.pdf
Class SignResult
- java.lang.Object
-
- com.pd4ml.pdf.sign.pdf.SignResult
-
public final class SignResult extends java.lang.ObjectResult of oneIncrementalPdfSigner.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/Contentsvalue, before hex-encoding/padding). Callers that only want the signed file can ignoregetCmsSignature(); it exists mainly so a follow-up LTV update (seecom.pd4ml.pdf.sign.ltv) can compute the PAdES/VRIkey -- 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getCmsSignature()byte[]getSignedPdf()
-