Class ExcelDigitalSignature
Digital Signature class to sign a workbook
Inherited Members
Namespace: OfficeOpenXml.DigitalSignatures
Assembly: EPPlus.dll
Syntax
public class ExcelDigitalSignature : XmlHelper
Fields
CommitmentTyping
Commitment Type.
Declaration
public CommitmentType CommitmentTyping
Field Value
| Type | Description |
|---|---|
| CommitmentType |
Details
Details about the signer of a DigitalSignature, such as role, title, address etc.
Declaration
public AdditionalSignatureInfo Details
Field Value
| Type | Description |
|---|---|
| AdditionalSignatureInfo |
Properties
Certificate
The Certificate used to sign this digital signature
Declaration
public X509Certificate2 Certificate { get; set; }
Property Value
| Type | Description |
|---|---|
| X509Certificate2 |
IsValid
Whether the Signature was valid when the file was read/saved Is dirty and outdated until after package is saved if any changes have been made to package files.
Declaration
public bool IsValid { get; }
Property Value
| Type | Description |
|---|---|
| bool |
PurposeForSigning
Reason for signing the document-
Declaration
public string PurposeForSigning { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
SetDigestMethod(DigitalSignatureHashAlgorithm)
Set the digest method/Hash Algorithm for the package Note: All Digital Signatures in the package will use the latest algorithm.
Declaration
public void SetDigestMethod(DigitalSignatureHashAlgorithm algorithm)
Parameters
| Type | Name | Description |
|---|---|---|
| DigitalSignatureHashAlgorithm | algorithm |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException |