com.sun.xml.ws.security.opt.crypto.dsig.CanonicalizationMethod cm =
new com.sun.xml.ws.security.opt.crypto.dsig.CanonicalizationMethod();
tp.getAny().add(cm);
JAXBElement<TransformationParametersType> tpElement =
new com.sun.xml.ws.security.secext10.ObjectFactory().createTransformationParameters(tp);
XMLStructure transformSpec = new JAXBStructure(tpElement);
reader.next();
if(StreamUtil.isStartElement(reader) && (reader.getLocalName() == MessageConstants.CANONICALIZATION_METHOD)){
String value = reader.getAttributeValue(null,"Algorithm");
SignatureProcessor.verifyCanonicalizationMethodAlgorithm(value);
cm.setAlgorithm(value);