CanonicalizationMethod canonicalMethod=
signatureFactory.newCanonicalizationMethod(canonicalAlgo,spec);
SignatureMethod signatureMethod = signatureFactory.newSignatureMethod(keyAlgo, null);
//Note : Signature algorithm parameters null for now , fix me.
SignedInfo signedInfo = signatureFactory.newSignedInfo(canonicalMethod,signatureMethod,
generateReferenceList(targetList,signatureFactory,secureMessage,fpContext,false, featureBinding.isEndorsingSignature()),null);
//Note : Id is now null , check ?,
return signedInfo;
}