Uses of Class
com.pd4ml.pdf.sign.CertificateUtils.SigningIdentity
-
Packages that use CertificateUtils.SigningIdentity Package Description com.pd4ml.pdf.sign -
-
Uses of CertificateUtils.SigningIdentity in com.pd4ml.pdf.sign
Methods in com.pd4ml.pdf.sign that return CertificateUtils.SigningIdentity 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.Methods in com.pd4ml.pdf.sign with parameters of type CertificateUtils.SigningIdentity Modifier and Type Method Description 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.
-