FileDocCategorySizeDatePackage
TransformC14N.javaAPI DocJava SE 6 API2469Tue Jun 10 00:23:04 BST 2008com.sun.org.apache.xml.internal.security.transforms.implementations

TransformC14N

public class TransformC14N extends TransformSpi
Implements the http://www.w3.org/TR/2001/REC-xml-c14n-20010315 transform.
author
Christian Geuer-Pollmann

Fields Summary
public static final String
implementedTransformURI
Field implementedTransformURI
Constructors Summary
Methods Summary
protected java.lang.StringengineGetURI()

inheritDoc



         
      
      return TransformC14N.implementedTransformURI;
   
protected com.sun.org.apache.xml.internal.security.signature.XMLSignatureInputenginePerformTransform(com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput input)

inheritDoc

   	    return enginePerformTransform(input,null);
   
protected com.sun.org.apache.xml.internal.security.signature.XMLSignatureInputenginePerformTransform(com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput input, java.io.OutputStream os)

   
         Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
         if (os!=null) {
         	c14n.setWriter(os);
         }
         byte[] result = null;                
         input.setNeedsToBeExpanded(true);
         result=c14n.engineCanonicalize(input);         		         	         
         XMLSignatureInput output=new XMLSignatureInput(result);
         if (os!=null) {
            output.setOutputStream(os);
         }
         return output;