Click or drag to resize

SecurIdSdtidTokenGetNodeContentsForHashing Method

Retrieve the contents of the given XML nodes and all their descendants in a predefined format, and return the results as a byte array suitable for hashing.

Namespace:  SamoyedSoftware.ursa
Assembly:  SamoyedSoftware.ursa (in SamoyedSoftware.ursa.dll) Version: 0.2.0
Syntax
protected byte[] GetNodeContentsForHashing(
	bool includeMAC,
	params XmlNode[] nodes
)

Parameters

includeMAC
Type: SystemBoolean
If , any MAC values in the XML will be included; if , MAC values will be skipped.
nodes
Type: System.XmlXmlNode
A list of XmlNode objects whose contents will be retrieved.

Return Value

Type: Byte
An array of bytes, containing the contents of the given XML nodes in a predefined format.
Remarks
The return value of this method is subsequently hashed to create a MAC (message authentication code) or Signature. This method calls GetChildNodeContentsForHashing(XmlNode, Boolean, StringBuilder, Int32, String) to recursively to retrieve the contents of all descendant nodes.
See Also