Interface IExternalSignatureContainer
- Namespace
- iText.Signatures
- Assembly
- itext.sign.dll
Interface to sign a document.
public interface IExternalSignatureContainer
Remarks
Interface to sign a document. The signing is fully done externally, including the container composition.
Methods
ModifySigningDictionary(PdfDictionary)
Modifies the signature dictionary to suit the container.
void ModifySigningDictionary(PdfDictionary signDic)
Parameters
signDic
PdfDictionarythe signature dictionary
Remarks
Modifies the signature dictionary to suit the container. At least the keys Filter and SubFilter will have to be set.
Sign(Stream)
Produces the container with the signature.
byte[] Sign(Stream data)
Parameters
data
Streamthe data to sign
Returns
- byte[]
a container with the signature and other objects, like CRL and OCSP. The container will generally be a PKCS7 one.