module
XMLSecurity::Canonicalizer
Overview
Canonical XML of one subtree, computed in place on its own document so the in-scope namespaces are the real ones (no re-serialising or re-parsing).
Defined in:
saml/c14n.crConstant Summary
-
PARENT_OFFSET =
offsetof(LibXML::NodeCommon, @parent) -
TYPE_OFFSET =
offsetof(LibXML::NodeCommon, @type)
Class Method Summary
-
.canonicalize(node : XML::Node, mode : XML::C14N::Mode, inclusive_namespaces : Array(String) | Nil = nil, with_comments : Bool = false, exclude : XML::Node | Nil = nil) : String
Canonicalizes node and its descendants, leaving out exclude and its descendants (the enveloped signature).
Class Method Detail
def self.canonicalize(node : XML::Node, mode : XML::C14N::Mode, inclusive_namespaces : Array(String) | Nil = nil, with_comments : Bool = false, exclude : XML::Node | Nil = nil) : String
#
Canonicalizes node and its descendants, leaving out exclude and its descendants (the enveloped signature). Raises on any libxml2 failure and on an empty result, which libxml2 can return for broken input.