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 StringThe HTML Prefix*(package private) static final StringHTML Suffix *private static final intprivate static final intprivate static final intprivate WriterField writerField _xmlSignatureInput -
Constructor Summary
ConstructorsConstructorDescriptionXMLSignatureInputDebugger(XMLSignatureInput xmlSignatureInput) Constructor XMLSignatureInputDebuggerXMLSignatureInputDebugger(XMLSignatureInput xmlSignatureInput, Set<String> inclusiveNamespace) Constructor XMLSignatureInputDebugger -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcanonicalizeXPathNodeSet(Node currentNode) Method canonicalizeXPathNodeSetMethod getHTMLRepresentationprivate intgetPositionRelativeToDocumentElement(Node currentNode) Checks whether a Comment or ProcessingInstruction is before or after the document element.private voidoutputAttrToWriter(String name, String value) Normalizes anAttribute 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 voidoutputCommentToWriter(Comment currentComment) Method outputCommentToWriterprivate voidoutputPItoWriter(ProcessingInstruction currentPI) Normalizes aCommentvalueprivate voidoutputTextToWriter(String text) Method outputTextToWriter
-
Field Details
-
xpathNodeSet
-
inclusiveNamespaces
-
writer
Field writer -
HTMLPrefix
-
HTMLSuffix
-
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:
XMLSignatureExceptionIOException
-
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 anAttribute 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,#xDis represented by the character reference
)
- Parameters:
name-value-- Throws:
IOException
- all ampersands (invalid input: '&') with
-
outputPItoWriter
Normalizes aCommentvalue- Parameters:
currentPI-- Throws:
IOException
-
outputCommentToWriter
Method outputCommentToWriter- Parameters:
currentComment-- Throws:
IOException
-
outputTextToWriter
Method outputTextToWriter- Parameters:
text-- Throws:
IOException
-