Package com.itextpdf.text.pdf.security
Class ExternalBlankSignatureContainer
java.lang.Object
com.itextpdf.text.pdf.security.ExternalBlankSignatureContainer
- All Implemented Interfaces:
ExternalSignatureContainer
Produces a blank (or empty) signature. Useful for deferred signing with
MakeSignature.signExternalContainer().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
modifySigningDictionary
(PdfDictionary signDic) Modifies the signature dictionary to suit the container.byte[]
sign
(InputStream data) Produces the container with the signature.
-
Field Details
-
sigDic
-
-
Constructor Details
-
ExternalBlankSignatureContainer
-
ExternalBlankSignatureContainer
-
-
Method Details
-
sign
Description copied from interface:ExternalSignatureContainer
Produces the container with the signature.- Specified by:
sign
in interfaceExternalSignatureContainer
- Parameters:
data
- the data to sign- Returns:
- a container with the signature and other objects, like CRL and OCSP. The container will generally be a PKCS7 one.
- Throws:
GeneralSecurityException
-
modifySigningDictionary
Description copied from interface:ExternalSignatureContainer
Modifies the signature dictionary to suit the container. At least the keys PdfName.FILTER and PdfName.SUBFILTER will have to be set.- Specified by:
modifySigningDictionary
in interfaceExternalSignatureContainer
- Parameters:
signDic
- the signature dictionary
-