Class XMLSignatureInputDebugger
java.lang.Object
org.apache.xml.security.signature.XMLSignatureInputDebugger
Class XMLSignatureInputDebugger
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final AttrCompare
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
The HTML Prefix*(package private) static final String
HTML Suffix *private static final int
private static final int
private static final int
private Writer
Field writerField _xmlSignatureInput -
Constructor Summary
ConstructorsConstructorDescriptionXMLSignatureInputDebugger
(XMLSignatureInput xmlSignatureInput) Constructor XMLSignatureInputDebuggerXMLSignatureInputDebugger
(XMLSignatureInput xmlSignatureInput, Set<String> inclusiveNamespace) Constructor XMLSignatureInputDebugger -
Method Summary
Modifier and TypeMethodDescriptionprivate void
canonicalizeXPathNodeSet
(Node currentNode) Method canonicalizeXPathNodeSetMethod getHTMLRepresentationprivate int
getPositionRelativeToDocumentElement
(Node currentNode) Checks whether a Comment or ProcessingInstruction is before or after the document element.private void
outputAttrToWriter
(String name, String value) Normalizes anAttr
ibute value The string value of the node is modified by replacing all ampersands (invalid input: '&') with&
all open angle brackets (invalid input: '<') with<
all quotation mark characters with"
and the whitespace characters#x9
, #xA, and #xD, with character references.private void
outputCommentToWriter
(Comment currentComment) Method outputCommentToWriterprivate void
outputPItoWriter
(ProcessingInstruction currentPI) Normalizes aComment
valueprivate void
outputTextToWriter
(String text) Method outputTextToWriter
-
Field Details
-
xpathNodeSet
Field _xmlSignatureInput -
inclusiveNamespaces
-
writer
Field writer -
HTMLPrefix
The HTML Prefix*- See Also:
-
HTMLSuffix
HTML Suffix *- See Also:
-
HTMLExcludePrefix
- See Also:
-
HTMLIncludePrefix
- See Also:
-
HTMLIncludeOrExcludeSuffix
- See Also:
-
HTMLIncludedInclusiveNamespacePrefix
- See Also:
-
HTMLExcludedInclusiveNamespacePrefix
- See Also:
-
NODE_BEFORE_DOCUMENT_ELEMENT
private static final int NODE_BEFORE_DOCUMENT_ELEMENT- See Also:
-
NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT
private static final int NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT- See Also:
-
NODE_AFTER_DOCUMENT_ELEMENT
private static final int NODE_AFTER_DOCUMENT_ELEMENT- See Also:
-
ATTR_COMPARE
-
-
Constructor Details
-
XMLSignatureInputDebugger
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 printinclusiveNamespace
-
-
-
Method Details
-
getHTMLRepresentation
Method getHTMLRepresentation- Returns:
- The HTML Representation.
- Throws:
XMLSignatureException
-
canonicalizeXPathNodeSet
Method canonicalizeXPathNodeSet- Parameters:
currentNode
-- Throws:
XMLSignatureException
IOException
-
getPositionRelativeToDocumentElement
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
Normalizes anAttr
ibute value The string value of the node is modified by replacing- all ampersands (invalid input: '&') with
&
- all open angle brackets (invalid input: '<') 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
)
- Parameters:
name
-value
-- Throws:
IOException
- all ampersands (invalid input: '&') with
-
outputPItoWriter
Normalizes aComment
value- Parameters:
currentPI
-- Throws:
IOException
-
outputCommentToWriter
Method outputCommentToWriter- Parameters:
currentComment
-- Throws:
IOException
-
outputTextToWriter
Method outputTextToWriter- Parameters:
text
-- Throws:
IOException
-