public abstract class Canonicalizer11 extends CanonicalizerBase
COMPARE, NODE_AFTER_DOCUMENT_ELEMENT, NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, XML, XMLNSreset, secureValidation| Constructor and Description |
|---|
Canonicalizer11(boolean includeComments)
Constructor Canonicalizer11
|
| 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[] |
engineCanonicalizeSubTree(org.w3c.dom.Node rootNode,
java.lang.String inclusiveNamespaces,
boolean propagateDefaultNamespace)
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, getNullNode, getParentNameSpaces, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter, outputCommentToWriter, outputPItoWriter, outputTextToWriter, setWriterengineCanonicalize, engineCanonicalizeXPathNodeSet, engineCanonicalizeXPathNodeSet, engineGetIncludeComments, engineGetURI, isSecureValidation, setSecureValidationpublic Canonicalizer11(boolean includeComments)
includeComments - public byte[] engineCanonicalizeXPathNodeSet(java.util.Set<org.w3c.dom.Node> xpathNodeSet,
java.lang.String inclusiveNamespaces)
throws CanonicalizationException
engineCanonicalizeXPathNodeSet in class CanonicalizerSpixpathNodeSet - inclusiveNamespaces - CanonicalizationException - alwayspublic byte[] engineCanonicalizeSubTree(org.w3c.dom.Node rootNode,
java.lang.String inclusiveNamespaces)
throws CanonicalizationException
engineCanonicalizeSubTree in class CanonicalizerSpirootNode - inclusiveNamespaces - CanonicalizationExceptionpublic byte[] engineCanonicalizeSubTree(org.w3c.dom.Node rootNode,
java.lang.String inclusiveNamespaces,
boolean propagateDefaultNamespace)
throws CanonicalizationException
engineCanonicalizeSubTree in class CanonicalizerSpirootNode - inclusiveNamespaces - propagateDefaultNamespace - If true the default namespace will be propagated to the c14n-ized root elementCanonicalizationExceptionprotected 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 - CanonicalizationExceptionprotected 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 - CanonicalizationExceptionprotected void circumventBugIfNeeded(XMLSignatureInput input) throws CanonicalizationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
CanonicalizationExceptionjavax.xml.parsers.ParserConfigurationExceptionjava.io.IOExceptionorg.xml.sax.SAXExceptionprotected void handleParent(org.w3c.dom.Element e,
NameSpaceSymbTable ns)
handleParent in class CanonicalizerBaseCopyright © 2007–2023. All rights reserved.