Iyob Zenebe
01/21/2025, 9:29 PMdigestMethod = signatureFactory.newDigestMethod("<http://www.w3.org/2001/04/xmlenc##sha256>", JavaCast("null", "java.lang.Object"));
writeOutput("Created DigestMethod (SHA-256)<br>");
// Create Transforms
transforms = createObject("java", "java.util.ArrayList").init();
writeOutput("Initialized transforms<br>");
// Enveloped Signature Transform
transforms.add(signatureFactory.newTransform("<http://www.w3.org/2000/09/xmldsig##enveloped-signature>", JavaCast("null", "java.lang.Object")));
writeOutput("Added Enveloped Signature Transform<br>");
I am getting the error on: transforms.add(signatureFactory.newTransform("http://www.w3.org/2000/09/xmldsig##enveloped-signature", JavaCast("null", "java.lang.Object")));
Error: The newTransform method was not found.
Type: Object
Detail: Either there are no methods with the specified method name and argument types or the newTransform method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 2 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.
Java stack trace:miguel-f
01/21/2025, 9:52 PMmiguel-f
01/21/2025, 9:54 PM