[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Pkcs7SignatureBuilder

Pkcs7SignatureBuilder Class

Implements the ISignatureBuilder interface, can be used to build a PKCS#7 signature.

Inheritance
Pkcs7SignatureBuilder
Implements
Namespace: GrapeCity.Documents.Pdf
Assembly: DS.Documents.Pdf.dll
Syntax
public class Pkcs7SignatureBuilder : ISignatureBuilder
Public Class Pkcs7SignatureBuilder
    Implements ISignatureBuilder

Constructors

Name Description
Pkcs7SignatureBuilder()

Initializes a new instance of the Pkcs7SignatureBuilder class.

Pkcs7SignatureBuilder(X509Certificate2, SignatureFormat, OID)

Initializes a new instance of the Pkcs7SignatureBuilder class.

Pkcs7SignatureBuilder(X509Certificate2[], SignatureFormat, OID)

Initializes a new instance of the Pkcs7SignatureBuilder class.

Properties

Name Description
CertificateChain

Gets or sets the certificate chain. The first certificate is used to sign the document.

Crls

Gets or sets the collection of certificate revocation lists (CRLs) to use. Items in this collection may be of the following types:

  • byte[]An encoded CRL list.
  • stringThe URL of a CRL (e.g. http://crl.cacert.org/revoke.crl).
  • System.UriThe System.Uri of a CRL.
  • X509Certificate2An X509Certificate2 object from which the URL of a CRL will be extracted.
An exception will be thrown if an object of an unsupported type is found in this collection.
Format

Gets or sets the signature format.

HashAlgorithm

Gets or sets the HASH algorithm used if SignatureGenerator is not specified. Note! If Format is adbe_pkcs7_sha1 then this property is ignored and always SHA-1 used.

IncludeOcsp

Gets or sets a value indicating whether to include OCSP information into the signature.

SignatureGenerator

Gets or sets the IPkcs7SignatureGenerator object used to sign the authenticated attribute set that is a part of PKCS#7 signature. If not set, the default built-in generator will be used.