Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] problem with Sign.signObject()

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] problem with Sign.signObject()


Chronological Thread 
  • From: Fabrizio Paccagnella <>
  • To:
  • Subject: Re: [OpenSAML] problem with Sign.signObject()
  • Date: Tue, 17 Aug 2010 09:21:34 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Dng+mKmEicLmPhtvOyoNGruOEGq4JGWzAwAnyW+3Z8PEhvhAjOGq+4OKowQ1Nn3Z5v GyvAnLU+1xPoZ17hjB3lQVdY44sT2a73LQNZq+LTOP6gBzUH95qEzHb8Gp7pSIg/QorM dJZtPfatYXdSOqLFWSRJkI2LvX+trgPyssWww=

Thank you very much! This solves my problem.

Thanks.

Fabrizio

On Mon, Aug 16, 2010 at 11:05 PM, Brent Putman
<>
wrote:
>
>
> On 8/16/10 10:12 AM, Fabrizio Paccagnella wrote:
>
>
>>> Hi, I tried to sign an assertion following this tutorial
>>> https://spaces.internet2.edu/display/OpenSAML/OSTwoUserManJavaDSIG
>>>
>>> However when I try to sign the assertion I get this exception:
>>> org.apache.xml.security.signature.XMLSignatureException: object not
>>> initialized for signature or verification
>
>
>
> You get that error when you don't supply a key to Apache xmlsec.  I
> didn't see a call to signature.setSigningCredential in your code.  I
> suppose b/c it's omitted from that particular example on the wiki.  (It
> is present on the example above that one).  I have fixed the wiki.
> Basically you just need to call
> "signature.setSigningCredential(signingCredential)".
>
> That should solve your problem, but if not, let me know.
>
> --Brent
>
>



Archive powered by MHonArc 2.6.16.

Top of Page