org.w3._2000._09.xmldsig_.SignedInfoType apiSignedInfo = signatureType.getSignedInfo();
SignedInfo modelSignedInfo = new SignedInfo();
modelSignature.setSignedInfo(modelSignedInfo);
String canonicalizationAlgMethod = apiSignedInfo.getCanonicalizationMethod().getAlgorithm();
CanonicalizationMethod modelCanonMethod = new CanonicalizationMethod();
modelSignedInfo.setCanonicalizationMethod(modelCanonMethod);
modelCanonMethod.setAlgorithm(canonicalizationAlgMethod);
SignatureMethod modelSigMethod = new SignatureMethod();
modelSignedInfo.setSignatureMethod(modelSigMethod);
String sigMethod = apiSignedInfo.getSignatureMethod().getAlgorithm();
modelSigMethod.setAlgorithm(sigMethod);