C# Class wSigner.OfficeOpenXmlSigner

Inheritance: DocumentSigner
Mostrar archivo Open project: wpq0/Document-Signer Class Usage Examples

Public Methods

Method Description
Sign ( Stream input, Stream output, X509Certificate2 certificate ) : void

Sign.

Verify ( Stream input, string serial = null ) : bool

Verify.

Private Methods

Method Description
AddSignableItems ( PackageRelationship relationship, ICollection partsToSign, ICollection relationshipsToSign ) : void
CreateOfficeObject ( string signatureID, string manifestHashAlgorithm ) : System.Security.Cryptography.Xml.DataObject
SignAllParts ( Package package, X509Certificate2 certificate ) : void

Method Details

Sign() public method

Sign.
public Sign ( Stream input, Stream output, X509Certificate2 certificate ) : void
input Stream The input.
output Stream The output.
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
return void

Verify() public method

Verify.
public Verify ( Stream input, string serial = null ) : bool
input Stream The input.
serial string The serial.
return bool