com.itextpdf.text.pdf.security
Class ExternalBlankSignatureContainer
java.lang.Object
com.itextpdf.text.pdf.security.ExternalBlankSignatureContainer
- All Implemented Interfaces:
- ExternalSignatureContainer
public class ExternalBlankSignatureContainer
- extends Object
- implements ExternalSignatureContainer
Produces a blank (or empty) signature. Useful for deferred signing with
MakeSignature.signExternalContainer().
- Author:
- Paulo Soares
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalBlankSignatureContainer
public ExternalBlankSignatureContainer(PdfDictionary sigDic)
ExternalBlankSignatureContainer
public ExternalBlankSignatureContainer(PdfName filter,
PdfName subFilter)
sign
public byte[] sign(InputStream data)
throws GeneralSecurityException
- Description copied from interface:
ExternalSignatureContainer
- Produces the container with the signature.
- Specified by:
sign
in interface ExternalSignatureContainer
- 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
public void modifySigningDictionary(PdfDictionary signDic)
- 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 interface ExternalSignatureContainer
- Parameters:
signDic
- the signature dictionary
Copyright © 2013. All Rights Reserved.