Class XMLSignatureInputDebugger


  • public class XMLSignatureInputDebugger
    extends java.lang.Object
    Class XMLSignatureInputDebugger
    • Field Detail

      • xpathNodeSet

        private java.util.Set<org.w3c.dom.Node> xpathNodeSet
        Field _xmlSignatureInput
      • inclusiveNamespaces

        private java.util.Set<java.lang.String> inclusiveNamespaces
      • writer

        private java.io.Writer writer
        Field writer
      • HTMLIncludeOrExcludeSuffix

        static final java.lang.String HTMLIncludeOrExcludeSuffix
        See Also:
        Constant Field Values
      • HTMLIncludedInclusiveNamespacePrefix

        static final java.lang.String HTMLIncludedInclusiveNamespacePrefix
        See Also:
        Constant Field Values
      • HTMLExcludedInclusiveNamespacePrefix

        static final java.lang.String HTMLExcludedInclusiveNamespacePrefix
        See Also:
        Constant Field Values
      • NODE_BEFORE_DOCUMENT_ELEMENT

        private static final int NODE_BEFORE_DOCUMENT_ELEMENT
        See Also:
        Constant Field Values
      • NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT

        private static final int NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT
        See Also:
        Constant Field Values
      • NODE_AFTER_DOCUMENT_ELEMENT

        private static final int NODE_AFTER_DOCUMENT_ELEMENT
        See Also:
        Constant Field Values
    • Constructor Detail

      • XMLSignatureInputDebugger

        public XMLSignatureInputDebugger​(XMLSignatureInput xmlSignatureInput)
        Constructor XMLSignatureInputDebugger
        Parameters:
        xmlSignatureInput - the signature to pretty print
      • XMLSignatureInputDebugger

        public XMLSignatureInputDebugger​(XMLSignatureInput xmlSignatureInput,
                                         java.util.Set<java.lang.String> inclusiveNamespace)
        Constructor XMLSignatureInputDebugger
        Parameters:
        xmlSignatureInput - the signatur to pretty print
        inclusiveNamespace -
    • Method Detail

      • canonicalizeXPathNodeSet

        private void canonicalizeXPathNodeSet​(org.w3c.dom.Node currentNode)
                                       throws XMLSignatureException,
                                              java.io.IOException
        Method canonicalizeXPathNodeSet
        Parameters:
        currentNode -
        Throws:
        XMLSignatureException
        java.io.IOException
      • getPositionRelativeToDocumentElement

        private int getPositionRelativeToDocumentElement​(org.w3c.dom.Node currentNode)
        Checks whether a Comment or ProcessingInstruction is before or after the document element. This is needed for prepending or appending "\n"s.
        Parameters:
        currentNode - comment or pi to check
        Returns:
        NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT or NODE_AFTER_DOCUMENT_ELEMENT
        See Also:
        NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, NODE_AFTER_DOCUMENT_ELEMENT
      • outputAttrToWriter

        private void outputAttrToWriter​(java.lang.String name,
                                        java.lang.String value)
                                 throws java.io.IOException
        Normalizes an Attribute value The string value of the node is modified by replacing
        • all ampersands (&) with &amp;
        • all open angle brackets (<) with &lt;
        • all quotation mark characters with &quot;
        • and the whitespace characters #x9, #xA, and #xD, with character references. The character references are written in uppercase hexadecimal with no leading zeroes (for example, #xD is represented by the character reference &#xD;)
        Parameters:
        name -
        value -
        Throws:
        java.io.IOException
      • outputPItoWriter

        private void outputPItoWriter​(org.w3c.dom.ProcessingInstruction currentPI)
                               throws java.io.IOException
        Normalizes a Comment value
        Parameters:
        currentPI -
        Throws:
        java.io.IOException
      • outputCommentToWriter

        private void outputCommentToWriter​(org.w3c.dom.Comment currentComment)
                                    throws java.io.IOException
        Method outputCommentToWriter
        Parameters:
        currentComment -
        Throws:
        java.io.IOException
      • outputTextToWriter

        private void outputTextToWriter​(java.lang.String text)
                                 throws java.io.IOException
        Method outputTextToWriter
        Parameters:
        text -
        Throws:
        java.io.IOException