public abstract class Canonicalizer20010315 extends CanonicalizerBase
COMPARE, NODE_AFTER_DOCUMENT_ELEMENT, NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, nullNode, XML, XMLNS
reset
Constructor and Description |
---|
Canonicalizer20010315(boolean includeComments)
Constructor Canonicalizer20010315
|
Modifier and Type | Method and Description |
---|---|
protected void |
circumventBugIfNeeded(XMLSignatureInput input) |
byte[] |
engineCanonicalizeSubTree(org.w3c.dom.Node rootNode,
java.lang.String inclusiveNamespaces)
Always throws a CanonicalizationException because this is inclusive c14n.
|
byte[] |
engineCanonicalizeXPathNodeSet(java.util.Set<org.w3c.dom.Node> xpathNodeSet,
java.lang.String inclusiveNamespaces)
Always throws a CanonicalizationException because this is inclusive c14n.
|
protected java.util.Iterator<org.w3c.dom.Attr> |
handleAttributes(org.w3c.dom.Element element,
NameSpaceSymbTable ns)
Returns the Attr[]s to be output for the given element.
|
protected java.util.Iterator<org.w3c.dom.Attr> |
handleAttributesSubtree(org.w3c.dom.Element element,
NameSpaceSymbTable ns)
Returns the Attr[]s to be output for the given element.
|
protected void |
handleParent(org.w3c.dom.Element e,
NameSpaceSymbTable ns) |
canonicalizeSubTree, canonicalizeXPathNodeSet, engineCanonicalize, engineCanonicalizeSubTree, engineCanonicalizeSubTree, engineCanonicalizeXPathNodeSet, getParentNameSpaces, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter, outputCommentToWriter, outputPItoWriter, outputTextToWriter, setWriter
engineCanonicalize, engineCanonicalizeXPathNodeSet, engineCanonicalizeXPathNodeSet, engineGetIncludeComments, engineGetURI
public Canonicalizer20010315(boolean includeComments)
includeComments
- public byte[] engineCanonicalizeXPathNodeSet(java.util.Set<org.w3c.dom.Node> xpathNodeSet, java.lang.String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeXPathNodeSet
in class CanonicalizerSpi
xpathNodeSet
- inclusiveNamespaces
- CanonicalizationException
- alwayspublic byte[] engineCanonicalizeSubTree(org.w3c.dom.Node rootNode, java.lang.String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeSubTree
in class CanonicalizerSpi
rootNode
- inclusiveNamespaces
- CanonicalizationException
protected java.util.Iterator<org.w3c.dom.Attr> handleAttributesSubtree(org.w3c.dom.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
- CanonicalizationException
protected java.util.Iterator<org.w3c.dom.Attr> handleAttributes(org.w3c.dom.Element element, NameSpaceSymbTable ns) throws CanonicalizationException
XMLUtils.circumventBug2650(
org.w3c.dom.Document)
.element
- ns
- CanonicalizationException
protected void circumventBugIfNeeded(XMLSignatureInput input) throws CanonicalizationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
CanonicalizationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
protected void handleParent(org.w3c.dom.Element e, NameSpaceSymbTable ns)
handleParent
in class CanonicalizerBase