Hi there,

I am getting an error(code in red) Object Instantiation Exception. I believe
it has to do with init call because i remember CF's init is different from
Java's style of callling constructors.

Can anybody recommend an alternative ? FYI, if i remove code in red till the
end and I do print values of other variables like docElement and
SignatureSpecNS, then I can see there values. If you need any further
information, let me know.

<cfscript>

xmlResponse= tokenXML; // this is full xml stored in variable here

docElement= XmlParse(variables.xmlResponse).getDocumentElement();

SignatureConstants=CreateObject("Java",
"org.apache.xml.security.utils.Constants");

SignatureSpecNS=SignatureConstants.SignatureSpecNS;

xmlSignatureClass =
CreateObject("Java","org.apache.xml.security.signature.XMLSignature");

*xmlSignature =
xmlSignatureClass.init(docElement.getElementsByTagNameNS(SignatureSpecNS,"Signature").item(0),"");
*// this lines gives error. see details below
//Exceptions 13:00:53.053 - Object Exception - in **** line 85    Object
Instantiation Exception.


keyInfo=xmlSignature.getKeyInfo();

X509CertificateResolverCN =
CreateObject("Java","org.apache.xml.security.keys.keyresolver.implementations.X509CertificateResolverClass");

keyResolver=CreateObject("Java",X509CertificateResolverCN).init();

keyInfo.registerInternalKeyResolver(keyResolver);

x509cert = keyInfo.getX509Certificate();

</cfscript>


Thanks


<Ajas Mohammed />
http://ajashadi.blogspot.com
We cannot become what we need to be, remaining what we are.
No matter what, find a way. Because thats what winners do.
You can't improve what you don't measure.
Quality is never an accident; it is always the result of high intention,
sincere effort, intelligent direction and skillful execution; it represents
the wise choice of many alternatives.

Reply via email to