Help with ClassCastException at IdResolver.registerElementById

"Om Sivanesan" <[email protected]> Mon, 31 Jan 2005 10:45:51 -0700
Newsgroups gmane.comp.sourceid.sso.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============0001242050==
Content-Class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C507BC.B4813114"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C507BC.B4813114
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All:

I am brand new to SourceId and even SAML. After getting the public key
from the certificate I have this statement:

SAMLUtils.checkSignature(docResponse.getDocumentElement(), publicKey);

And I get this error:
java.lang.ClassCastException
	at
org.apache.xml.security.utils.IdResolver.registerElementById(IdResolver.
java:111)
	at
org.sourceid.sso.util.SAMLUtils.checkSignature(SAMLUtils.java:181)

I think I am using the wrong xmlsec.jar file. Am I right? If so what is
the right jar file to use? And if I am wrong please tell me where I am
going wrong.

Thank you,
Om


------_=_NextPart_001_01C507BC.B4813114
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6396.0">
<TITLE>Help with ClassCastException at =
IdResolver.registerElementById</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi All:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am brand new to SourceId and even =
SAML. After getting the public key from the certificate I have this =
statement:</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">SAMLUtils.checkSignature(docResponse.getDocumentElement(),=
 publicKey);</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">And I get this error:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">java.lang.ClassCastException</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">at =
org.apache.xml.security.utils.IdResolver.registerElementById(IdResolver.j=
ava:111)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">at =
org.sourceid.sso.util.SAMLUtils.checkSignature(SAMLUtils.java:181)</FONT>=

</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I think I am using the wrong xmlsec.jar =
file. Am I right? If so what is the right jar file to use? And if I am =
wrong please tell me where I am going wrong.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thank you,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Om</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C507BC.B4813114--

--===============0001242050==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
sso-users mailing list
[email protected]
http://lists.sourceid.org/mailman/listinfo/sso-users

--===============0001242050==--