public abstract class Canonicalizer20010315 extends CanonicalizerBase
COMPARE, NODE_AFTER_DOCUMENT_ELEMENT, NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, XML, XMLNS
reset, secureValidation
Constructor and Description |
---|
Canonicalizer20010315(boolean includeComments)
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 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) |
canonicalizeSubTree, canonicalizeXPathNodeSet, engineCanonicalize, engineCanonicalizeSubTree, engineCanonicalizeSubTree, engineCanonicalizeXPathNodeSet, getNullNode, getParentNameSpaces, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter, outputCommentToWriter, outputPItoWriter, outputTextToWriter, setWriter
engineCanonicalize, engineCanonicalizeXPathNodeSet, engineCanonicalizeXPathNodeSet, engineGetIncludeComments, engineGetURI, isSecureValidation, setSecureValidation
public Canonicalizer20010315(boolean includeComments)
includeComments
- public byte[] engineCanonicalizeXPathNodeSet(Set<Node> xpathNodeSet, String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeXPathNodeSet
in class CanonicalizerSpi
xpathNodeSet
- inclusiveNamespaces
- CanonicalizationException
- alwayspublic byte[] engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeSubTree
in class CanonicalizerSpi
rootNode
- inclusiveNamespaces
- CanonicalizationException
public byte[] engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces, boolean propagateDefaultNamespace) throws CanonicalizationException
engineCanonicalizeSubTree
in class CanonicalizerSpi
rootNode
- inclusiveNamespaces
- propagateDefaultNamespace
- If true the default namespace will be propagated to the c14n-ized root elementCanonicalizationException
protected 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
- CanonicalizationException
protected Iterator<Attr> handleAttributes(Element element, NameSpaceSymbTable ns) throws CanonicalizationException
XMLUtils.circumventBug2650(
org.w3c.dom.Document)
.element
- ns
- CanonicalizationException
protected void circumventBugIfNeeded(XMLSignatureInput input) throws CanonicalizationException, ParserConfigurationException, IOException, SAXException
protected void handleParent(Element e, NameSpaceSymbTable ns)
handleParent
in class CanonicalizerBase
Copyright © 2007-2019. All Rights Reserved.