throws CanonicalizationException {
return enginePerformTransform(input,null);
}
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input,OutputStream os)
throws CanonicalizationException {
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;