[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.SignatureProperties

SignatureProperties Class

Represents properties used to sign a PDF document.

Inheritance
SignatureProperties
Namespace: GrapeCity.Documents.Pdf
Assembly: DS.Documents.Pdf.dll
Syntax
public class SignatureProperties
Public Class SignatureProperties

Constructors

Name Description
SignatureProperties()

Initializes a new instance of the SignatureProperties class.

Properties

Name Description
Certificate

Gets or sets a certificate used to generate a digital signature.

NOTE: This property is obsolete and should not be used. Instead, use SignatureBuilder and Pkcs7SignatureBuilder class to create a PKCS#7 signature and setup its properties.

ContactInfo

Gets or sets the information provided by the signer to enable a recipient to contact the signer to verify the signature (for example, a phone number).

DocumentAccessPermissions

Gets or sets a document's access permissions granted by this signature. This property can be specified only for one and first signature in the document, this signature will be "certification signature".

Location

Gets or sets the CPU host name or physical location of the signing.

By default this property is initialized with MachineName.

Reason

Gets or sets the reason for the signing, such as "I agree...".

SignatureAppearance

Gets or sets a SignatureAppearance object defining the visual appearance of the generated signature.

By default this property is initialized with a default instance of the SignatureAppearance class.

SignatureBuilder

Gets or sets a ISignatureBuilder object used to build the signature.

SignatureDigestAlgorithm

Gets or sets the signature digest algorithm.

NOTE: This property is obsolete and should not be used. Instead, use SignatureBuilder and Pkcs7SignatureBuilder class to create a PKCS#7 signature and setup its properties.

If SignatureFormat is PKCS7SHA1, then this property is ignored and SHA1 is used.

SignatureField

Gets or sets an AcroForm field used to store a digital signature.

If Widget is not null, a visual appearance will be generated based on values of the properties SigningDateTime, Location etc.

SignatureFormat

Gets or sets the format of the signature.

NOTE: This property is obsolete and should not be used. Instead, use SignatureBuilder and Pkcs7SignatureBuilder class to create a PKCS#7 signature and setup its properties.

SignerName

Gets or sets the name of the person or authority signing the document.

NOTE: This value is used only if it is not possible to extract the name from the signature, for example from the certificate of the signer.

By default this property is initialized with UserName.

SigningDateTime

Gets or sets the time of signing.

NOTE: This value is used only if the time of signing is not available in the signature. For example, a time stamp can be embedded in a PKCS#7 binary data object.

By default this property is initialized with the current date and time.

TimeStamp

Gets or sets the object implementing the ITimeStampGenerator interface that is used to generate the time-stamp token included in the digital signature of the document.

Methods

Name Description
CreatePAdES_B_B(params X509Certificate2[])

Creates a SignatureProperties object and initializes it so that it will create a PAdES B-B signature.

CreatePAdES_B_T(TimeStamp, params X509Certificate2[])

Creates a SignatureProperties object and initializes it so that it will create a PAdES B-T signature.