You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,11 +269,13 @@ A `SignedXml` object provides the following methods:
269
269
270
270
To sign xml documents:
271
271
272
-
-`addReference(xpath, transforms, digestAlgorithm)` - adds a reference to a xml element where:
272
+
-`addReference({ xpath, transforms, digestAlgorithm, isSignatureReference, id, type })` - adds a reference to a xml element where:
273
273
-`xpath` - a string containing a XPath expression referencing a xml element
274
274
-`transforms` - an array of [transform algorithms](#canonicalization-and-transformation-algorithms), the referenced element will be transformed for each value in the array
275
275
-`digestAlgorithm` - one of the supported [hashing algorithms](#hashing-algorithms)
276
276
-`isSignatureReference` - boolean - default `false` - indicates whether the target of this reference is located inside the `<Signature>` element (e.g. an `<Object>`)
277
+
-`id` - an optional `Id` attribute to add to the reference element
278
+
-`type` - the optional `Type` attribute to add to the reference element (represented as a URI)
277
279
-`computeSignature(xml, [options])` - compute the signature of the given xml where:
278
280
-`xml` - a string containing a xml document
279
281
-`options` - an object with the following properties:
0 commit comments