public abstract class Canonicalizer20010315 extends CanonicalizerBase
COMPARE, NODE_AFTER_DOCUMENT_ELEMENT, NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, XML, XML_LANG_URI, XMLNS, XMLNS_URIreset, secureValidation| Constructor and Description |
|---|
Canonicalizer20010315(boolean includeComments)
Constructor Canonicalizer20010315
|
Canonicalizer20010315(boolean includeComments,
boolean c14n11)
Constructor Canonicalizer20010315
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
circumventBugIfNeeded(XMLSignatureInput input) |
byte[] |
engineCanonicalizeSubTree(Node rootNode,
String inclusiveNamespaces)
Always throws a CanonicalizationException because this is inclusive c14n.
|
byte[] |
engineCanonicalizeSubTree(Node rootNode,
String inclusiveNamespaces,
boolean propagateDefaultNamespace)
Always throws a CanonicalizationException because this is inclusive c14n.
|
byte[] |
engineCanonicalizeXPathNodeSet(Set<Node> xpathNodeSet,
String inclusiveNamespaces)
Always throws a CanonicalizationException because this is inclusive c14n.
|
protected void |
handleParent(Element e,
NameSpaceSymbTable ns) |
protected void |
outputAttributes(Element element,
NameSpaceSymbTable ns,
Map<String,byte[]> cache)
Output the Attr[]s for the given element.
|
protected void |
outputAttributesSubtree(Element element,
NameSpaceSymbTable ns,
Map<String,byte[]> cache)
Output the Attr[]s for the given element.
|
canonicalizeSubTree, canonicalizeXPathNodeSet, engineCanonicalize, engineCanonicalizeSubTree, engineCanonicalizeSubTree, engineCanonicalizeXPathNodeSet, getNullNode, getParentNameSpaces, getWriter, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter, outputCommentToWriter, outputPItoWriter, outputTextToWriter, setWriterengineCanonicalize, engineCanonicalizeXPathNodeSet, engineCanonicalizeXPathNodeSet, engineGetIncludeComments, engineGetURI, isSecureValidation, setSecureValidationpublic Canonicalizer20010315(boolean includeComments)
includeComments - public Canonicalizer20010315(boolean includeComments,
boolean c14n11)
includeComments - c14n11 - Whether this is a Canonical XML 1.1 implementation or notpublic 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 - CanonicalizationExceptionpublic byte[] engineCanonicalizeSubTree(Node rootNode, 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 void outputAttributesSubtree(Element element, NameSpaceSymbTable ns, Map<String,byte[]> cache) throws CanonicalizationException, DOMException, IOException
#outputAttributes(Element,
NameSpaceSymbTable, Map) ,
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 - cache - CanonicalizationException, - DOMException, IOExceptionCanonicalizationExceptionDOMExceptionIOExceptionprotected void outputAttributes(Element element, NameSpaceSymbTable ns, Map<String,byte[]> cache) throws CanonicalizationException, DOMException, IOException
XMLUtils.circumventBug2650(
org.w3c.dom.Document).element - ns - cache - CanonicalizationException, - DOMException, IOExceptionCanonicalizationExceptionDOMExceptionIOExceptionprotected void circumventBugIfNeeded(XMLSignatureInput input) throws CanonicalizationException, ParserConfigurationException, IOException, SAXException
protected void handleParent(Element e, NameSpaceSymbTable ns)
handleParent in class CanonicalizerBaseCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.