iText 9.0.0 API
iText.Signatures.ExternalBlankSignatureContainer Class Reference

Produces a blank (or empty) signature. More...

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

Public Member Functions

  ExternalBlankSignatureContainer (PdfDictionary sigDic)
  Creates an ExternalBlankSignatureContainer. More...
 
  ExternalBlankSignatureContainer (PdfName filter, PdfName subFilter)
  Creates an ExternalBlankSignatureContainer. More...
 
virtual byte[]  Sign (Stream data)
  Produces the container with the signature. More...
 
virtual void  ModifySigningDictionary (PdfDictionary signDic)
  Modifies the signature dictionary to suit the container. More...
 

Detailed Description

Produces a blank (or empty) signature.

Produces a blank (or empty) signature. Useful for deferred signing with MakeSignature.signExternalContainer().

Constructor & Destructor Documentation

◆ ExternalBlankSignatureContainer() [1/2]

iText.Signatures.ExternalBlankSignatureContainer.ExternalBlankSignatureContainer ( PdfDictionary  sigDic )
inline

Creates an ExternalBlankSignatureContainer.

Parameters
sigDic PdfDictionary containing signature iformation. /SubFilter and /Filter aren't set in this constructor.

◆ ExternalBlankSignatureContainer() [2/2]

iText.Signatures.ExternalBlankSignatureContainer.ExternalBlankSignatureContainer ( PdfName  filter,
PdfName  subFilter 
)
inline

Creates an ExternalBlankSignatureContainer.

Creates an ExternalBlankSignatureContainer. This constructor will create the PdfDictionary for the signature information and will insert the /Filter and /SubFilter values into this dictionary.

Parameters
filter PdfName of the signature handler to use when validating this signature
subFilter PdfName that describes the encoding of the signature

Member Function Documentation

◆ ModifySigningDictionary()

virtual void iText.Signatures.ExternalBlankSignatureContainer.ModifySigningDictionary ( PdfDictionary  signDic )
inlinevirtual

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

Implements iText.Signatures.IExternalSignatureContainer.

◆ Sign()

virtual byte [] iText.Signatures.ExternalBlankSignatureContainer.Sign ( Stream  data )
inlinevirtual

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.

Implements iText.Signatures.IExternalSignatureContainer.