Uses of Class
com.pd4ml.pdf.sign.PdfSigningException
-
Packages that use PdfSigningException Package Description com.pd4ml.pdf.sign Signing PDF files:PdfSignerapplies PAdES-compatible digital signatures, visible or invisible, with local or remote (RemoteSigner) keys.com.pd4ml.pdf.sign.ltv Long-term validation (PAdES-LT): fetches OCSP responses and CRLs and adds them to a signed PDF.com.pd4ml.pdf.sign.pdf The low-level signing mechanics: a signature applied as an incremental update over the signed byte ranges. -
-
Uses of PdfSigningException in com.pd4ml.pdf.sign
Methods in com.pd4ml.pdf.sign that throw PdfSigningException Modifier and Type Method Description static CertificateUtils.SigningIdentityCertificateUtils. forRemoteKey(java.security.cert.Certificate[] certificateChain, RemoteSigner remoteSigner)Builds a signing identity for a key that lives entirely in a remote KMS (AWS KMS, Azure Key Vault, GCP Cloud KMS, or any signing service reachable over the network) -- there is no localPrivateKey; every signature is produced by callingremoteSigner.static CertificateUtils.SigningIdentityCertificateUtils. loadFromPkcs11(java.io.File pkcs11ConfigFile, char[] pin)Loads the first available private-key alias from a PKCS#11 token, configured by a standardSunPKCS11config file (the samename=.../library=.../slot=...format documented for-Djava.security.pkcs11.SunPKCS11.provider).static CertificateUtils.SigningIdentityCertificateUtils. loadFromPkcs11(java.io.File pkcs11ConfigFile, char[] pin, java.lang.String alias)LikeCertificateUtils.loadFromPkcs11(File, char[]), for a token holding more than one key.static CertificateUtils.SigningIdentityCertificateUtils. loadFromPkcs11(java.security.Provider pkcs11Provider, char[] pin, java.lang.String alias)LikeCertificateUtils.loadFromPkcs11(File, char[], String), for a caller that already has a configuredSunPKCS11Providerinstance (e.g.static CertificateUtils.SigningIdentityCertificateUtils. loadFromPkcs12(java.io.File keystoreFile, char[] password)Loads the first alias found in a PKCS#12 keystore (the common case for a keystore that holds exactly one signing identity).static CertificateUtils.SigningIdentityCertificateUtils. loadFromPkcs12(java.io.InputStream keystoreStream, char[] password, java.lang.String alias)Loads a specific alias from a PKCS#12 keystore.VisibleSignatureOptionsVisibleSignatureOptions. setSignatureImage(java.io.File imageFile)byte[]PdfSigner. sign(byte[] inputPdfBytes, CertificateUtils.SigningIdentity identity, SigningOptions options)Signs an in-memory PDF, returning the signed document's bytes.voidPdfSigner. sign(java.io.File inputPdf, java.io.File outputPdf, CertificateUtils.SigningIdentity identity, SigningOptions options)SignsinputPdf, writing the signed document tooutputPdf.voidPdfSigner. sign(java.io.InputStream input, java.io.OutputStream output, CertificateUtils.SigningIdentity identity, SigningOptions options)Signs the PDF read frominput, writing the signed bytes tooutput.SignResultPdfSigner. signForResult(byte[] inputPdfBytes, CertificateUtils.SigningIdentity identity, SigningOptions options)LikePdfSigner.sign(byte[], CertificateUtils.SigningIdentity, SigningOptions), but returns the fullSignResult-- signed PDF bytes plus the raw CMS/PKCS#7 signature that was embedded. -
Uses of PdfSigningException in com.pd4ml.pdf.sign.ltv
Methods in com.pd4ml.pdf.sign.ltv that throw PdfSigningException Modifier and Type Method Description static byte[]LtvUpdater. addLtv(byte[] signedPdf, byte[] cmsSignature, java.security.cert.Certificate[] certificateChain, LtvOptions options)Fetches OCSP/CRL forcertificateChain(viaRevocationFetcher) and embeds it, plus the chain itself, as LTV information for the signature whose CMS bytes arecmsSignature.static byte[]LtvUpdater. embedValidationInformation(byte[] signedPdf, byte[] cmsSignature, java.security.cert.Certificate[] certificateChain, RevocationFetcher.Result revocationData)Embeds already-fetched revocation data (seeLtvUpdater.addLtv(byte[], byte[], java.security.cert.Certificate[], com.pd4ml.pdf.sign.ltv.LtvOptions)for the all-in-one version). -
Uses of PdfSigningException in com.pd4ml.pdf.sign.pdf
Methods in com.pd4ml.pdf.sign.pdf that throw PdfSigningException Modifier and Type Method Description byte[]ByteRangeSigner. sign(byte[] dataToHash)SignResultIncrementalPdfSigner. sign(ByteRangeSigner signer)Performs the whole incremental-update signing flow, callingsignerexactly once, with exactly the bytes the resulting PDF signature is defined to cover.Constructors in com.pd4ml.pdf.sign.pdf that throw PdfSigningException Constructor Description IncrementalPdfSigner(byte[] originalPdfBytes, SigningOptions options)
-