com.ibm.xml.crypto.dsig.dom.transform
Class C14nTransformer
java.lang.Object
javax.xml.crypto.dsig.TransformService
com.ibm.xml.crypto.dsig.dom.transform.TransformBase
com.ibm.xml.crypto.dsig.dom.transform.C14nTransformer
- All Implemented Interfaces:
- AlgorithmMethod, CanonicalizationMethod, Transform, XMLStructure
- Direct Known Subclasses:
- C14nWCTransformer
public class C14nTransformer
- extends TransformBase
- implements CanonicalizationMethod
Method Summary |
static java.util.Hashtable |
collectNamespaceNodesInAncestors(org.w3c.dom.Node startNode,
boolean useProxy)
Collects all namespace nodes that are effective in the startNode. |
static java.util.Hashtable |
collectXMLPrefixAttributesInAncestors(org.w3c.dom.Node startNode)
Collects all xml: prefix attributess that are effective in the startNode
but not in the startNode |
(package private) static void |
serializeNode(org.w3c.dom.Node topNode,
org.w3c.dom.Node node,
org.w3c.dom.Node exceptedNode,
boolean withComments,
boolean xmlAttributes,
java.io.Writer wr)
|
(package private) static void |
serializeSubset(org.w3c.dom.NodeList nodeList,
boolean withComments,
java.io.Writer wr)
|
Data |
transform(Data in,
XMLCryptoContext xcontext)
Transforms the specified data using the underlying transform algorithm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
withComments
protected boolean withComments
C14nTransformer
public C14nTransformer()
transform
public Data transform(Data in,
XMLCryptoContext xcontext)
throws TransformException
- Description copied from interface:
Transform
- Transforms the specified data using the underlying transform algorithm.
- Specified by:
transform
in interface Transform
- Parameters:
in
- the data to be transformedxcontext
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
- Returns:
- the transformed data
- Throws:
TransformException
- if an error occurs while executing the
transform
serializeSubset
static void serializeSubset(org.w3c.dom.NodeList nodeList,
boolean withComments,
java.io.Writer wr)
throws java.io.IOException,
XMLSignatureException
- Throws:
java.io.IOException
XMLSignatureException
serializeNode
static void serializeNode(org.w3c.dom.Node topNode,
org.w3c.dom.Node node,
org.w3c.dom.Node exceptedNode,
boolean withComments,
boolean xmlAttributes,
java.io.Writer wr)
throws java.io.IOException,
XMLSignatureException
- Throws:
java.io.IOException
XMLSignatureException
collectNamespaceNodesInAncestors
public static java.util.Hashtable collectNamespaceNodesInAncestors(org.w3c.dom.Node startNode,
boolean useProxy)
- Collects all namespace nodes that are effective in the startNode.
- Parameters:
startNode
- A target element.
- Returns:
- A hashtable; A key in the result is an attribute names such as "xmlns", "xmlns:foo".
An element in the result is an
Attr
instance.
collectXMLPrefixAttributesInAncestors
public static java.util.Hashtable collectXMLPrefixAttributesInAncestors(org.w3c.dom.Node startNode)
- Collects all xml: prefix attributess that are effective in the startNode
but not in the startNode
- Parameters:
startNode
- A target element.
- Returns:
- A hashtable; A key in the result is an attribute names such as "xml:lang", "xml:space".
An element in the result is an
Attr
instance.
Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.