Class XmlElementSigner
Provides methods for creating a XML signature of an specific XML element in a XML document
Inheritance
XmlElementSigner
Assembly: Lacuna.Pki.dll
Syntax
public class XmlElementSigner : XmlSigner
Constructors
|
Improve this Doc
View Source
XmlElementSigner()
Declaration
public XmlElementSigner()
Methods
|
Improve this Doc
View Source
AddReferences(SignedXml, DigestAlgorithm, XmlPolicySpec)
Declaration
protected override void AddReferences(SignedXml signedXml, DigestAlgorithm digestAlgorithm, XmlPolicySpec policy)
Parameters
Overrides
|
Improve this Doc
View Source
GetToSignEntityTransferData()
Declaration
protected override byte[] GetToSignEntityTransferData()
Returns
Overrides
|
Improve this Doc
View Source
InsertSignatureElement(XmlElement, String, XmlInsertionOptions)
Declaration
protected override void InsertSignatureElement(XmlElement signatureElement, string xpath, XmlInsertionOptions insertionOption)
Parameters
Overrides
|
Improve this Doc
View Source
SetIdResolutionTable(XmlIdResolutionTable)
Sets a table to handle the attribute ID name to be used as ID locally or globally in the XML
Declaration
public void SetIdResolutionTable(XmlIdResolutionTable idResolutionTable)
Parameters
|
Improve this Doc
View Source
SetToSignElementId(String)
Sets the element ID, in the passed XML document, which is going to be signed.
If the specific ID attribute value is not known, an XPath can be passed instead: See method SetToSignElementXPath
Declaration
public void SetToSignElementId(string elementId)
Parameters
| Type |
Name |
Description |
| String |
elementId |
The ID attribute of the element to be signed
|
|
Improve this Doc
View Source
SetToSignElementXPath(String, NamespaceManager)
Sets an XPath for selecting the element, with ID attribute, in the passed XML document, which is going to be signed
Declaration
public void SetToSignElementXPath(string xpath, NamespaceManager namespaceMan)
Parameters
| Type |
Name |
Description |
| String |
xpath |
The XPath for selecting to sign element with ID
|
| NamespaceManager |
namespaceMan |
Namespaces and prefixed on XPath string, if needed
|
|
Improve this Doc
View Source
SetToSignEntityTransferData(Byte[])
Declaration
protected override void SetToSignEntityTransferData(byte[] transferData)
Parameters
| Type |
Name |
Description |
| Byte[] |
transferData |
|
Overrides
|
Improve this Doc
View Source
VerifyParameters(Boolean)
Declaration
protected override void VerifyParameters(bool computeSignature)
Parameters
| Type |
Name |
Description |
| Boolean |
computeSignature |
|
Overrides