Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML2.0] Signature

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML2.0] Signature


Chronological Thread 
  • From: Dimuthu Leelarathne <>
  • To:
  • Subject: Re: [OpenSAML2.0] Signature
  • Date: Thu, 17 Jan 2008 18:36:48 +0530
  • Organization: WSO2


It works :) !

Thank you,
Dimuthu


On Thu, 2008-01-17 at 14:00 +0100, Chad La Joie wrote:
> Does the thing you're trying to sign have an ID? It doesn't look like it.
>
> Dimuthu Leelarathne wrote:
> > Hi,
> >
> > Thanks for the quick reply. But now I am facing the below problem[1].
> >
> > I followed the documentation and tried both with
> > CanonicalizationMethod.INCLUSIVE and EXCLUSIVE. The algorithm is
> > XMLSignature.ALGO_ID_SIGNATURE_RSA
> >
> > My X509Credential implementation successfully retrieves the private key.
> > But the xmlsec libraries throw the following exception[1]
> >
> > Your help is much appreciated.
> >
> > Thank you,
> > Dimuthu
> >
> >
> >
> > [1]
> > 18:08:01.483 [main] ERROR org.opensaml.xml.signature.Signer - An error
> > occured computing the digital signature
> > org.apache.xml.security.signature.XMLSignatureException: Cannot resolve
> > element with ID null
> > at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
> > at org.opensaml.xml.signature.Signer.signObject(Signer.java:76)
> > at org.opensaml.xml.signature.Signer.signObjects(Signer.java:57)
> > at org.wso2.practice.HelloWorld.main(HelloWorld.java:87)
> >
> >
> >
> > On Thu, 2008-01-17 at 13:08 +0100, Chad La Joie wrote:
> >> You could check out the mailing list archives, which has seen a lot of
> >> discussion about this topic over the last couple weeks, or you can start
> >> at the Java documentation. It appears you were looking at the C++ docs
> >> which isn't going to be very helpful when using the Java library.
> >>
> >> Dimuthu Leelarathne wrote:
> >>> Hi All,
> >>>
> >>> I am new to OpenSAML2.0 library. I managed to build the library along
> >>> with java-openws and java-xmltooling. I also created a SAML Assertion
> >>> using it. Now I want to sign it.
> >>>
> >>> But I cannot find documentation on Signing the SAML Assertion except
> >>> this[1]. I will be really thankful, if you can give a pointer to sample
> >>> code or more documentation.
> >>>
> >>> Thanks,
> >>> Dimuthu
> >>>
> >>> [1]https://spaces.internet2.edu/display/SHIB/OSTwoUserManCPPDSIG
> >>>
> >>>
> >>>
> >
>




Archive powered by MHonArc 2.6.16.

Top of Page