pub enum C14nMode {
C14n10,
ExcC14n10 {
inclusive_prefixes: Vec<String>,
},
}Expand description
Selects which W3C canonicalization algorithm to apply.
Variants§
C14n10
Canonical XML 1.0 (http://www.w3.org/TR/2001/REC-xml-c14n-20010315).
Renders every namespace declaration in scope at the
canonicalization root. Use for whole-document
canonicalization or fragments that should preserve their
inherited namespace context.
ExcC14n10
Exclusive Canonical XML 1.0
(http://www.w3.org/2001/10/xml-exc-c14n#). Only renders
namespace declarations visibly used by the canonicalized
subtree, plus any prefixes in inclusive_prefixes.
Required by SAML, WS-Security, XAdES.
Fields
inclusive_prefixes: Vec<String>Namespace prefixes to render even when not visibly used —
the InclusiveNamespaces PrefixList from the spec.
Empty list (the default in most uses) means “exclusive
strictly per the algorithm.” Use the empty string ""
to force the default namespace into the inclusive set.