Skip to content

Class ExcelDigitalSignature

Namespace: OfficeOpenXml.DigitalSignatures
Assembly: EPPlus.dll

Digital Signature class to sign a workbook

public class ExcelDigitalSignature : XmlHelper

Inheritance

object ← XmlHelper ← ExcelDigitalSignature

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Fields

CommitmentTyping

Commitment Type.

public CommitmentType CommitmentTyping

Field Value

CommitmentType

Details

Details about the signer of a DigitalSignature, such as role, title, address etc.

public AdditionalSignatureInfo Details

Field Value

AdditionalSignatureInfo

Properties

Certificate

The Certificate used to sign this digital signature

public X509Certificate2 Certificate { get; set; }

Property Value

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.

public bool IsValid { get; }

Property Value

bool

PurposeForSigning

Reason for signing the document-

public string PurposeForSigning { get; set; }

Property Value

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.

public void SetDigestMethod(DigitalSignatureHashAlgorithm algorithm)

Parameters

algorithm DigitalSignatureHashAlgorithm

Exceptions

InvalidOperationException