|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.security.c14n.CanonicalizerSpi
org.apache.xml.security.c14n.implementations.CanonicalizerBase
org.apache.xml.security.c14n.implementations.Canonicalizer20010315Excl
public abstract class Canonicalizer20010315Excl
Implements " Exclusive XML
Canonicalization, Version 1.0 "
Credits: During restructuring of the Canonicalizer framework, Ren??
Kollmorgen from Software AG submitted an implementation of ExclC14n which
fitted into the old architecture and which based heavily on my old (and slow)
implementation of "Canonical XML". A big "thank you" to Ren?? for this.
THIS implementation is a complete rewrite of the algorithm.
Field Summary |
---|
Fields inherited from class org.apache.xml.security.c14n.implementations.CanonicalizerBase |
---|
COMPARE, NODE_AFTER_DOCUMENT_ELEMENT, NODE_BEFORE_DOCUMENT_ELEMENT, NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT, nullNode, XML, XMLNS |
Fields inherited from class org.apache.xml.security.c14n.CanonicalizerSpi |
---|
reset |
Constructor Summary | |
---|---|
Canonicalizer20010315Excl(boolean includeComments)
Constructor Canonicalizer20010315Excl |
Method Summary | |
---|---|
protected void |
circumventBugIfNeeded(XMLSignatureInput input)
|
byte[] |
engineCanonicalize(XMLSignatureInput rootNode,
java.lang.String inclusiveNamespaces)
|
byte[] |
engineCanonicalizeSubTree(org.w3c.dom.Node rootNode)
Method engineCanonicalizeSubTree |
byte[] |
engineCanonicalizeSubTree(org.w3c.dom.Node rootNode,
java.lang.String inclusiveNamespaces)
Method engineCanonicalizeSubTree |
byte[] |
engineCanonicalizeSubTree(org.w3c.dom.Node rootNode,
java.lang.String inclusiveNamespaces,
org.w3c.dom.Node excl)
Method engineCanonicalizeSubTree |
byte[] |
engineCanonicalizeXPathNodeSet(java.util.Set<org.w3c.dom.Node> xpathNodeSet,
java.lang.String inclusiveNamespaces)
Method engineCanonicalizeXPathNodeSet |
protected java.util.Iterator<org.w3c.dom.Attr> |
handleAttributes(org.w3c.dom.Element element,
NameSpaceSymbTable ns)
Obtain the attributes to output for this node in XPathNodeSet c14n. |
protected java.util.Iterator<org.w3c.dom.Attr> |
handleAttributesSubtree(org.w3c.dom.Element element,
NameSpaceSymbTable ns)
Obtain the attributes to output for this node in a Subtree c14n. |
Methods inherited from class org.apache.xml.security.c14n.implementations.CanonicalizerBase |
---|
canonicalizeSubTree, canonicalizeXPathNodeSet, engineCanonicalize, engineCanonicalizeSubTree, engineCanonicalizeXPathNodeSet, getParentNameSpaces, handleParent, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter, outputCommentToWriter, outputPItoWriter, outputTextToWriter, setWriter |
Methods inherited from class org.apache.xml.security.c14n.CanonicalizerSpi |
---|
engineCanonicalize, engineCanonicalizeXPathNodeSet, engineCanonicalizeXPathNodeSet, engineGetIncludeComments, engineGetURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Canonicalizer20010315Excl(boolean includeComments)
includeComments
- Method Detail |
---|
public byte[] engineCanonicalizeSubTree(org.w3c.dom.Node rootNode) throws CanonicalizationException
engineCanonicalizeSubTree
in class CanonicalizerBase
rootNode
-
CanonicalizationException
public byte[] engineCanonicalizeSubTree(org.w3c.dom.Node rootNode, java.lang.String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeSubTree
in class CanonicalizerSpi
rootNode
- inclusiveNamespaces
-
CanonicalizationException
public byte[] engineCanonicalizeSubTree(org.w3c.dom.Node rootNode, java.lang.String inclusiveNamespaces, org.w3c.dom.Node excl) throws CanonicalizationException
rootNode
- inclusiveNamespaces
- excl
- A element to exclude from the c14n process.
CanonicalizationException
public byte[] engineCanonicalize(XMLSignatureInput rootNode, java.lang.String inclusiveNamespaces) throws CanonicalizationException
rootNode
- inclusiveNamespaces
-
CanonicalizationException
public byte[] engineCanonicalizeXPathNodeSet(java.util.Set<org.w3c.dom.Node> xpathNodeSet, java.lang.String inclusiveNamespaces) throws CanonicalizationException
engineCanonicalizeXPathNodeSet
in class CanonicalizerSpi
xpathNodeSet
- inclusiveNamespaces
-
CanonicalizationException
protected java.util.Iterator<org.w3c.dom.Attr> handleAttributesSubtree(org.w3c.dom.Element element, NameSpaceSymbTable ns) throws CanonicalizationException
CanonicalizerBase
CanonicalizationException
protected final java.util.Iterator<org.w3c.dom.Attr> handleAttributes(org.w3c.dom.Element element, NameSpaceSymbTable ns) throws CanonicalizationException
CanonicalizerBase
element
-
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |