|
||||||||||
| 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.Canonicalizer11
public abstract class Canonicalizer11
Implements Canonical XML Version 1.1, a W3C Proposed Recommendation from 29 January 2008.
| 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, XML, XMLNS |
| Fields inherited from class org.apache.xml.security.c14n.CanonicalizerSpi |
|---|
reset, secureValidation |
| Constructor Summary | |
|---|---|
Canonicalizer11(boolean includeComments)
Constructor Canonicalizer11 |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.xml.security.c14n.implementations.CanonicalizerBase |
|---|
canonicalizeSubTree, canonicalizeXPathNodeSet, engineCanonicalize, engineCanonicalizeSubTree, engineCanonicalizeSubTree, engineCanonicalizeXPathNodeSet, getNullNode, getParentNameSpaces, isVisible, isVisibleDO, isVisibleInt, outputAttrToWriter, outputCommentToWriter, outputPItoWriter, outputTextToWriter, setWriter |
| Methods inherited from class org.apache.xml.security.c14n.CanonicalizerSpi |
|---|
engineCanonicalize, engineCanonicalizeXPathNodeSet, engineCanonicalizeXPathNodeSet, engineGetIncludeComments, engineGetURI, isSecureValidation, setSecureValidation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Canonicalizer11(boolean includeComments)
includeComments - | Method Detail |
|---|
public byte[] engineCanonicalizeXPathNodeSet(Set<Node> xpathNodeSet,
String inclusiveNamespaces)
throws CanonicalizationException
engineCanonicalizeXPathNodeSet in class CanonicalizerSpixpathNodeSet - inclusiveNamespaces -
CanonicalizationException - always
public byte[] engineCanonicalizeSubTree(Node rootNode,
String inclusiveNamespaces)
throws CanonicalizationException
engineCanonicalizeSubTree in class CanonicalizerSpirootNode - inclusiveNamespaces -
CanonicalizationException
public 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 element
CanonicalizationException
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
CanonicalizationException
ParserConfigurationException
IOException
SAXException
protected void handleParent(Element e,
NameSpaceSymbTable ns)
handleParent in class CanonicalizerBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||