Class XMLSignatureInputDebugger

java.lang.Object
org.apache.xml.security.signature.XMLSignatureInputDebugger

public class XMLSignatureInputDebugger extends Object
Class XMLSignatureInputDebugger
  • Field Details

  • Constructor Details

    • XMLSignatureInputDebugger

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

      public XMLSignatureInputDebugger(XMLSignatureInput xmlSignatureInput, Set<String> inclusiveNamespace)
      Constructor XMLSignatureInputDebugger
      Parameters:
      xmlSignatureInput - the signatur to pretty print
      inclusiveNamespace -
  • Method Details

    • getHTMLRepresentation

      public String getHTMLRepresentation() throws XMLSignatureException
      Method getHTMLRepresentation
      Returns:
      The HTML Representation.
      Throws:
      XMLSignatureException
    • canonicalizeXPathNodeSet

      private void canonicalizeXPathNodeSet(Node currentNode) throws XMLSignatureException, IOException
      Method canonicalizeXPathNodeSet
      Parameters:
      currentNode -
      Throws:
      XMLSignatureException
      IOException
    • getPositionRelativeToDocumentElement

      private int getPositionRelativeToDocumentElement(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:
    • outputAttrToWriter

      private void outputAttrToWriter(String name, String value) throws IOException
      Normalizes an Attribute value The string value of the node is modified by replacing
      • all ampersands (invalid input: '&') with &amp;
      • all open angle brackets (invalid input: '<') 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:
      IOException
    • outputPItoWriter

      private void outputPItoWriter(ProcessingInstruction currentPI) throws IOException
      Normalizes a Comment value
      Parameters:
      currentPI -
      Throws:
      IOException
    • outputCommentToWriter

      private void outputCommentToWriter(Comment currentComment) throws IOException
      Method outputCommentToWriter
      Parameters:
      currentComment -
      Throws:
      IOException
    • outputTextToWriter

      private void outputTextToWriter(String text) throws IOException
      Method outputTextToWriter
      Parameters:
      text -
      Throws:
      IOException