Uses of Interface
com.itextpdf.signatures.IExternalDigest
-
Uses of IExternalDigest in com.itextpdf.signatures
Modifier and TypeClassDescriptionclass
Implementation for digests accessed directly from the BouncyCastle library bypassing any provider definition.class
This class will return theMessageDigest
associated with a certain hashing algorithm returned by the specified provider.Modifier and TypeMethodDescriptionstatic byte[]
DigestAlgorithms.digest
(InputStream data, String hashAlgorithm, IExternalDigest externalDigest) Create a digest based on the inputstream.PdfPadesSigner.setExternalDigest
(IExternalDigest externalDigest) SetIExternalDigest
to be used for main signing operation.PdfTwoPhaseSigner.setExternalDigest
(IExternalDigest externalDigest) Use the external digest to inject specific digest implementationsvoid
PdfSigner.signDetached
(IExternalDigest externalDigest, IExternalSignature externalSignature, Certificate[] chain, Collection<ICrlClient> crlList, IOcspClient ocspClient, ITSAClient tsaClient, int estimatedSize, PdfSigner.CryptoStandard sigtype) Signs the document using the detached mode, CMS or CAdES equivalent.void
PdfSigner.signDetached
(IExternalDigest externalDigest, IExternalSignature externalSignature, Certificate[] chain, Collection<ICrlClient> crlList, IOcspClient ocspClient, ITSAClient tsaClient, int estimatedSize, PdfSigner.CryptoStandard sigtype, ISignaturePolicyIdentifier signaturePolicy) Signs the document using the detached mode, CMS or CAdES equivalent.void
PdfSigner.signDetached
(IExternalDigest externalDigest, IExternalSignature externalSignature, Certificate[] chain, Collection<ICrlClient> crlList, IOcspClient ocspClient, ITSAClient tsaClient, int estimatedSize, PdfSigner.CryptoStandard sigtype, SignaturePolicyInfo signaturePolicy) Signs the document using the detached mode, CMS or CAdES equivalent.ModifierConstructorDescriptionPdfPKCS7
(PrivateKey privKey, Certificate[] certChain, String hashAlgorithm, String provider, IExternalDigest interfaceDigest, boolean hasEncapContent) Assembles all the elements needed to create a signature, except for the data.