Click or drag to resize

SecurIdSdtidTokenGetChildNodeContentsForHashing Method

Retrieve the contents of all descendants of a given XML node, in a predefined format in preparation for hashing.

Namespace:  SamoyedSoftware.ursa
Assembly:  SamoyedSoftware.ursa (in SamoyedSoftware.ursa.dll) Version: 0.2.0
Syntax
protected int GetChildNodeContentsForHashing(
	XmlNode parentNode,
	bool includeMAC,
	StringBuilder nodeContents,
	ref int padding,
	string nodePrefix
)

Parameters

parentNode
Type: System.XmlXmlNode
An XmlNode whose descendants will be retrieved.
includeMAC
Type: SystemBoolean
If , any MAC values in the XML will be included; if , MAC values will be skipped.
nodeContents
Type: System.TextStringBuilder
A StringBuilder object to which the results will be appended.
padding
Type: SystemInt32
The number of padding characters to be appended to the results.
nodePrefix
Type: SystemString
The prefix to be prepended to each node name.

Return Value

Type: Int32
The number of child nodes found (direct children only).
Remarks
This method is called by GetNodeContentsForHashing(Boolean, XmlNode) to build a string that will be subsequently hashed to create a MAC (message authentication code) or Signature. This method calls itself recursively to retrieve all the descendant nodes.
See Also