logger.log(Level.FINEST, "CanonicalizationMethod is " + algo);
}
//CanonicalizationMethod cm = null;
C14NMethodParameterSpec spec = null;
try{
TransformationParametersType tp =
new com.sun.xml.ws.security.secext10.ObjectFactory().createTransformationParametersType();
com.sun.xml.ws.security.opt.crypto.dsig.CanonicalizationMethod cm =
new com.sun.xml.ws.security.opt.crypto.dsig.CanonicalizationMethod();
cm.setAlgorithm(algo);
tp.getAny().add(cm);
JAXBElement<TransformationParametersType> tpElement =
new com.sun.xml.ws.security.secext10.ObjectFactory().createTransformationParameters(tp);
XMLStructure transformSpec = new JAXBStructure(tpElement);
transform = signatureFactory.newTransform(transformAlgo,transformSpec);
if(SignatureTarget.TARGET_TYPE_VALUE_URI.equals(signatureTarget.getType())){