SignOptions Class

Wordize.DigitalSignatures.SignOptions class. Allows to specify options for document signing.

SignOptions class

Allows to specify options for document signing.

public class SignOptions

Constructors

NameDescription
SignOptions()The default constructor.

Properties

NameDescription
Comments { get; set; }Specifies comments on the digital signature. Default value is empty string.
DecryptionPassword { get; set; }The password to decrypt source document. Default value is empty string.
ProviderId { get; set; }Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid.
SignTime { get; set; }The date of signing. Default value is current time
XmlDsigLevel { get; set; }Specifies the level of a digital signature based on XML-DSig standard. The default value is XmlDSig.

Examples

Demonstrates how to sign document.

CertificateHolder certHolder = CertificateHolder.Create(MyDir + "morzal.pfx", "aw");

SignOptions signOptions = new SignOptions();
signOptions.Comments = "Test Signing";
signOptions.SignTime = DateTime.Now;

Signer.Sign(MyDir + "Simple.docx", ArtifactsDir + "Signed.docx", certHolder, signOptions);

See Also