Frends.XML.SignXml / 2.0.0
Summary
Applies an XML digital signature so a recipient can verify the document came from you unchanged, with a choice of enveloping style and of where the result goes.
Typical use — documents whose authenticity has to be provable on their own, independently of how they were transported
Input class for SignXml-task.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| XmlInputType | XmlParamType |
– | File |
Input type. Possible types are File and XmlString. Possible values:
|
| XmlFilePath | String |
c:\temp\document.xml |
c:\temp\document.xml |
Path to XML document to sign. |
| Xml | String |
<root><value>123</value></root> |
File |
Input type. Possible types are File and XmlString. |
| XmlEnvelopingType | XmlEnvelopingType |
– | XmlEnvelopedSignature |
XML signing technique to use. Possible values:
|
| SigningStrategy | SigningStrategyType |
– | PrivateKeyCertificate |
How to sign the document. Possible values:
|
| CertificatePath | String |
c:\certificates\signingcertificate.pfx |
c:\\certificates\\signingcertificate.pfx |
Path to certificate with private key. |
| PrivateKeyPasswordSecret | String |
– | password123 |
Private key password. |
| OutputType | XmlParamType |
– | File |
Output to file or XML string? Possible values:
|
| OutputFilePath | String |
c:\temp\signedOutput.xml |
c:\\temp\\signedOutput.xml |
A filepath for the output XML. |
| OutputEncoding | String |
UTF-8 |
UTF-8 |
The encoding for the output file. |
| AddSignatureToSourceFile | Boolean |
– | true |
If source is file, then you can add signature to it. |