Table of Contents

Class PKCS7ExternalSignatureContainer

Namespace
iText.Signatures
Assembly
itext.sign.dll

Implementation class for IExternalSignatureContainer.

public class PKCS7ExternalSignatureContainer : IExternalSignatureContainer
Inheritance
PKCS7ExternalSignatureContainer
Implements
Inherited Members

Remarks

Implementation class for IExternalSignatureContainer. This external signature container is implemented based on PCS7 standard and PdfPKCS7 class.

Constructors

PKCS7ExternalSignatureContainer(IPrivateKey, IX509Certificate[], string)

Creates an instance of PKCS7ExternalSignatureContainer

public PKCS7ExternalSignatureContainer(IPrivateKey privateKey, IX509Certificate[] chain, string hashAlgorithm)

Parameters

privateKey IPrivateKey

The private key to sign with

chain IX509Certificate[]

The certificate chain

hashAlgorithm string

The hash algorithm to use

Methods

ModifySigningDictionary(PdfDictionary)

public virtual void ModifySigningDictionary(PdfDictionary signDic)

Parameters

signDic PdfDictionary

SetCrlClient(ICrlClient)

Set the CrlClient if you want revocation data collected trough Crl to be added to the signature

public virtual void SetCrlClient(ICrlClient crlClient)

Parameters

crlClient ICrlClient

the client to be used

SetOcspClient(IOcspClient)

Set the OcspClient if you want revocation data collected trough Ocsp to be added to the signature

public virtual void SetOcspClient(IOcspClient ocspClient)

Parameters

ocspClient IOcspClient

the client to be used

SetSignaturePolicy(SignaturePolicyInfo)

Set the signature policy if you want it to be added to the signature

public virtual void SetSignaturePolicy(SignaturePolicyInfo signaturePolicy)

Parameters

signaturePolicy SignaturePolicyInfo

the signature to be set.

SetSignatureType(CryptoStandard)

Set a custom signature type, default value

public virtual void SetSignatureType(PdfSigner.CryptoStandard sigType)

Parameters

sigType PdfSigner.CryptoStandard

the type of signature to be created

SetTsaClient(ITSAClient)

Set the TsaClient if you want a TSA timestamp added to the signature

public virtual void SetTsaClient(ITSAClient tsaClient)

Parameters

tsaClient ITSAClient

the client to use

Sign(Stream)

public virtual byte[] Sign(Stream data)

Parameters

data Stream

Returns

byte[]