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
@@ -243,7 +241,7 @@ The `SignedXml` constructor provides an abstraction for sign and verify xml docu
243
241
-`idAttribute` - string - default `Id` or `ID` or `id` - the name of the attribute that contains the id of the element
244
242
-`privateKey` - string or Buffer - default `null` - the private key to use for signing
245
243
-`publicCert` - string or Buffer - default `null` - the public certificate to use for verifying
246
-
-`signatureAlgorithm` - string - default `http://www.w3.org/2000/09/xmldsig#rsa-sha1` - the signature algorithm to use
244
+
-`signatureAlgorithm` - string - the signature algorithm to use
247
245
-`canonicalizationAlgorithm` - string - default `undefined` - the canonicalization algorithm to use
248
246
-`inclusiveNamespacesPrefixList` - string - default `null` - a list of namespace prefixes to include during canonicalization
249
247
-`implicitTransforms` - string[] - default `[]` - a list of implicit transforms to use during verification
@@ -257,7 +255,7 @@ A `SignedXml` object provides the following methods:
257
255
258
256
To sign xml documents:
259
257
260
-
-`addReference(xpath, [transforms], [digestAlgorithm])` - adds a reference to a xml element where:
258
+
-`addReference(xpath, transforms, digestAlgorithm)` - adds a reference to a xml element where:
261
259
-`xpath` - a string containing a XPath expression referencing a xml element
262
260
-`transforms` - an array of [transform algorithms](#canonicalization-and-transformation-algorithms), the referenced element will be transformed for each value in the array
263
261
-`digestAlgorithm` - one of the supported [hashing algorithms](#hashing-algorithms)
@@ -391,7 +389,13 @@ function signXml(xml, xpath, key, dest) {
0 commit comments