com.itextpdf.text.pdf.security
Interface ExternalSignatureContainer

All Known Implementing Classes:
ExternalBlankSignatureContainer

public interface ExternalSignatureContainer

Interface to sign a document. The signing is fully done externally, including the container composition.

Author:
Paulo Soares

Method Summary
 void modifySigningDictionary(PdfDictionary signDic)
          Modifies the signature dictionary to suit the container.
 byte[] sign(InputStream data)
          Produces the container with the signature.
 

Method Detail

sign

byte[] sign(InputStream data)
            throws GeneralSecurityException
Produces the container with the signature.

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

void modifySigningDictionary(PdfDictionary signDic)
Modifies the signature dictionary to suit the container. At least the keys PdfName.FILTER and PdfName.SUBFILTER will have to be set.

Parameters:
signDic - the signature dictionary


Copyright © 2013. All Rights Reserved.