Documentation ¶
Index ¶
- func IsWhitespace(s string) bool
- func ProcessNodesRecursive(node *etree.Element, processToken TokenProcessor)
- func StripWhitespace(document *etree.Document)
- func XMLDigitalSignatureC14NTransform(xmlText string, stripComments bool, stripWhitespace bool) (*etree.Document, error)
- func XMLDocument(xml string) (*etree.Document, error)
- type TokenProcessor
- type XMLDigestSignature
- type XMLDigestSigner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWhitespace ¶
IsWhitespace returns true if the byte slice contains only whitespace characters.
func ProcessNodesRecursive ¶
func ProcessNodesRecursive(node *etree.Element, processToken TokenProcessor)
func StripWhitespace ¶
func XMLDigitalSignatureC14NTransform ¶
func XMLDigitalSignatureC14NTransform(xmlText string, stripComments bool, stripWhitespace bool) (*etree.Document, error)
XMLDigitalSignatureC14NTransform will perform a canonical transform on an XML string and return an XMLDocument object. See these links for more details https://www.w3.org/TR/xml-exc-c14n/ https://www.w3.org/TR/xml-exc-c14n/#ref-XML-C14N
Types ¶
type TokenProcessor ¶
type XMLDigestSignature ¶
type XMLDigestSignature struct { Doc *etree.Document MessageDigestElementPath string MessageDigestSignatureKey string MessageDigestSignatureEncoding string MessageDigestSignatureRootElementPath string MessageDigestSignatureAlgorithm string Pretty bool }
func (*XMLDigestSignature) Inject ¶
func (d *XMLDigestSignature) Inject(generateSignature XMLDigestSigner) error
Inject executes a callback which receives the canonicalXML for which a signature should be generated and expects a returned string
Click to show internal directories.
Click to hide internal directories.