public class CanonicalizerPhysical extends CanonicalizerBase
COMPARE, NODE_AFTER_DOCUMENT_ELEMENT, NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, nullNode, XML, XMLNSreset, secureValidation| Constructor and Description |
|---|
CanonicalizerPhysical()
Constructor Canonicalizer20010315
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
circumventBugIfNeeded(XMLSignatureInput input) |
byte[] |
engineCanonicalizeSubTree(Node rootNode,
String inclusiveNamespaces)
Always throws a CanonicalizationException.
|
byte[] |
engineCanonicalizeXPathNodeSet(Set<Node> xpathNodeSet,
String inclusiveNamespaces)
Always throws a CanonicalizationException.
|
boolean |
engineGetIncludeComments()
Returns true if comments are included
|
String |
engineGetURI()
Returns the URI of this engine.
|
protected Iterator<Attr> |
handleAttributes(Element element,
NameSpaceSymbTable ns)
Returns the Attr[]s to be output for the given element.
|
protected Iterator<Attr> |
handleAttributesSubtree(Element element,
NameSpaceSymbTable ns)
Returns the Attr[]s to be output for the given element.
|
protected void |
handleParent(Element e,
NameSpaceSymbTable ns) |
protected void |
outputCommentToWriter(Comment currentComment,
OutputStream writer,
int position)
Method outputCommentToWriter
|
protected void |
outputPItoWriter(ProcessingInstruction currentPI,
OutputStream writer,
int position)
Outputs a PI to the internal Writer.
|
canonicalizeSubTree, canonicalizeXPathNodeSet, engineCanonicalize, engineCanonicalizeSubTree, engineCanonicalizeSubTree, engineCanonicalizeXPathNodeSet, getParentNameSpaces, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter, outputTextToWriter, setWriterengineCanonicalize, engineCanonicalizeXPathNodeSet, engineCanonicalizeXPathNodeSet, isSecureValidation, setSecureValidationpublic CanonicalizerPhysical()
public byte[] engineCanonicalizeXPathNodeSet(Set<Node> xpathNodeSet, String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeXPathNodeSet in class CanonicalizerSpixpathNodeSet - inclusiveNamespaces - CanonicalizationException - alwayspublic byte[] engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeSubTree in class CanonicalizerSpirootNode - inclusiveNamespaces - CanonicalizationExceptionprotected Iterator<Attr> handleAttributesSubtree(Element element, NameSpaceSymbTable ns) throws CanonicalizationException
handleAttributes(Element,
NameSpaceSymbTable),
whereas it takes into account that subtree-c14n is -- well -- subtree-based.
So if the element in question isRoot of c14n, it's parent is not in the
node set, as well as all other ancestors.element - ns - CanonicalizationExceptionprotected Iterator<Attr> handleAttributes(Element element, NameSpaceSymbTable ns) throws CanonicalizationException
element - ns - CanonicalizationExceptionprotected void circumventBugIfNeeded(XMLSignatureInput input) throws CanonicalizationException, ParserConfigurationException, IOException, SAXException
protected void handleParent(Element e, NameSpaceSymbTable ns)
handleParent in class CanonicalizerBasepublic final String engineGetURI()
CanonicalizerSpiengineGetURI in class CanonicalizerSpipublic final boolean engineGetIncludeComments()
CanonicalizerSpiengineGetIncludeComments in class CanonicalizerSpiprotected void outputPItoWriter(ProcessingInstruction currentPI, OutputStream writer, int position) throws IOException
CanonicalizerBaseoutputPItoWriter in class CanonicalizerBasewriter - where to write the thingsIOExceptionprotected void outputCommentToWriter(Comment currentComment, OutputStream writer, int position) throws IOException
CanonicalizerBaseoutputCommentToWriter in class CanonicalizerBasewriter - writer where to write the thingsIOExceptionCopyright © 2000–2023 The Apache Software Foundation. All rights reserved.