APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.signature

public Class XMLSignatureInputDebugger

extends Object
Class Inheritance
Imports
java.io.IOException, .StringWriter, .Writer, java.util.Arrays, .Set, com.sun.org.apache.xml.internal.security.c14n.helper.AttrCompare, com.sun.org.apache.xml.internal.security.utils.XMLUtils, org.w3c.dom.Attr, .Comment, .Document, .Element, .NamedNodeMap, .Node, .ProcessingInstruction

Class XMLSignatureInputDebugger

Field Summary

Modifier and TypeField and Description
pack-priv static final AttrCompare
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
HTMLPrefix

The HTML Prefix*

pack-priv static final String
HTMLSuffix

HTML Suffix *

private Set<String>
private static final int
private static final int
private static final int
private Writer
writer

Field writer

private Set<Node>
xpathNodeSet

Field _xmlSignatureInput

Constructor Summary

AccessConstructor and Description
public
XMLSignatureInputDebugger(XMLSignatureInput
the signature to pretty print
xmlSignatureInput
)

Constructor XMLSignatureInputDebugger

public
XMLSignatureInputDebugger(XMLSignatureInput
the signature to pretty print
xmlSignatureInput
,
Set<String> inclusiveNamespace)

Constructor XMLSignatureInputDebugger

Method Summary

Modifier and TypeMethod and Description
private void
canonicalizeXPathNodeSet(Node currentNode)

Method canonicalizeXPathNodeSet

public String

Returns:

The HTML Representation.
getHTMLRepresentation
()

Method getHTMLRepresentation

private int

Returns:

NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT or NODE_AFTER_DOCUMENT_ELEMENT
getPositionRelativeToDocumentElement
(Node
comment or pi to check
currentNode
)

Checks whether a Comment or ProcessingInstruction is before or after the document element.

private void
outputAttrToWriter(String name, String value)

Normalizes an Attribute value The string value of the node is modified by replacing

  • all ampersands (&) with &
  • all open angle brackets (<) with <
  • all quotation mark characters with "
  • 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 )
private void
outputCommentToWriter(Comment currentComment)

Method outputCommentToWriter

private void
private void
outputTextToWriter(String text)

Method outputTextToWriter

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ATTR_COMPAREback to summary
pack-priv static final AttrCompare ATTR_COMPARE
HTMLExcludedInclusiveNamespacePrefixback to summary
pack-priv static final String HTMLExcludedInclusiveNamespacePrefix
HTMLExcludePrefixback to summary
pack-priv static final String HTMLExcludePrefix
HTMLIncludedInclusiveNamespacePrefixback to summary
pack-priv static final String HTMLIncludedInclusiveNamespacePrefix
HTMLIncludeOrExcludeSuffixback to summary
pack-priv static final String HTMLIncludeOrExcludeSuffix
HTMLIncludePrefixback to summary
pack-priv static final String HTMLIncludePrefix
HTMLPrefixback to summary
pack-priv static final String HTMLPrefix

The HTML Prefix*

HTMLSuffixback to summary
pack-priv static final String HTMLSuffix

HTML Suffix *

inclusiveNamespacesback to summary
private Set<String> inclusiveNamespaces
NODE_AFTER_DOCUMENT_ELEMENTback to summary
private static final int NODE_AFTER_DOCUMENT_ELEMENT
NODE_BEFORE_DOCUMENT_ELEMENTback to summary
private static final int NODE_BEFORE_DOCUMENT_ELEMENT
NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENTback to summary
private static final int NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT
writerback to summary
private Writer writer

Field writer

xpathNodeSetback to summary
private Set<Node> xpathNodeSet

Field _xmlSignatureInput

Constructor Detail

XMLSignatureInputDebuggerback to summary
public XMLSignatureInputDebugger(XMLSignatureInput xmlSignatureInput)

Constructor XMLSignatureInputDebugger

Parameters
xmlSignatureInput:XMLSignatureInput

the signature to pretty print

XMLSignatureInputDebuggerback to summary
public XMLSignatureInputDebugger(XMLSignatureInput xmlSignatureInput, Set<String> inclusiveNamespace)

Constructor XMLSignatureInputDebugger

Parameters
xmlSignatureInput:XMLSignatureInput

the signature to pretty print

Method Detail

canonicalizeXPathNodeSetback to summary
private void canonicalizeXPathNodeSet(Node currentNode) throws XMLSignatureException, IOException

Method canonicalizeXPathNodeSet

getHTMLRepresentationback to summary
public String getHTMLRepresentation() throws XMLSignatureException

Method getHTMLRepresentation

Returns:String

The HTML Representation.

getPositionRelativeToDocumentElementback to summary
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:Node

comment or pi to check

Returns:int

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
outputAttrToWriterback to summary
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 (&) with &
  • all open angle brackets (<) with <
  • all quotation mark characters with "
  • 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 )
outputCommentToWriterback to summary
private void outputCommentToWriter(Comment currentComment) throws IOException

Method outputCommentToWriter

outputPItoWriterback to summary
private void outputPItoWriter(ProcessingInstruction currentPI) throws IOException

Normalizes a org.w3c.dom.Comment value

outputTextToWriterback to summary
private void outputTextToWriter(String text) throws IOException

Method outputTextToWriter