iText 9.0.0 API
iText.Signatures.IExternalSignatureContainer Interface Reference

Interface to sign a document. More...

Inheritance diagram for iText.Signatures.IExternalSignatureContainer:
iText.Signatures.ExternalBlankSignatureContainer iText.Signatures.PKCS7ExternalSignatureContainer

Public Member Functions

byte[]  Sign (Stream data)
  Produces the container with the signature. More...
 
void  ModifySigningDictionary (PdfDictionary signDic)
  Modifies the signature dictionary to suit the container. More...
 

Detailed Description

Interface to sign a document.

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

Member Function Documentation

◆ ModifySigningDictionary()

void iText.Signatures.IExternalSignatureContainer.ModifySigningDictionary ( PdfDictionary  signDic )

Modifies the signature dictionary to suit the container.

Modifies the signature dictionary to suit the container. At least the keys iText.Kernel.Pdf.PdfName.Filter and iText.Kernel.Pdf.PdfName.SubFilter will have to be set.

Parameters
signDic the signature dictionary

Implemented in iText.Signatures.PKCS7ExternalSignatureContainer, and iText.Signatures.ExternalBlankSignatureContainer.

◆ Sign()

byte [] iText.Signatures.IExternalSignatureContainer.Sign ( Stream  data )

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.

Implemented in iText.Signatures.PKCS7ExternalSignatureContainer, and iText.Signatures.ExternalBlankSignatureContainer.