Exception when creating the signature using OpenSAML lib
Yaowen Tu
yaowen.tu at gmail.com
Wed Oct 31 18:35:09 EDT 2012
>>Are you sure you are actually adding the the Signature to the object you
are signing.
I think based on the code I posted in the original email, the
answer should be Yes.
Yaowen
On Wed, Oct 31, 2012 at 3:13 PM, Brent Putman <putmanb at georgetown.edu>wrote:
> I just noticed this is on the Shib users list. Please move all followup
> to Shib dev list.
>
> On 10/31/12 6:07 PM, Yaowen Tu wrote:
> > Thanks Brent. Are you suggesting simply use:
> > prepareSignatureParams(signature, signingCredential, null,
> > null);?
> >
>
> The last param, yes. The next to last (security configuration) it
> doesn't matter, it will use the default one if you pass null.
>
> > I have tried this, and after creating a signed object, when I try to
> > validate it, I got this exception:
> >
> > org.opensaml.xml.validation.ValidationException: Apache XMLSignature
> > does not exist on SignatureImpl
> > at
> >
> org.opensaml.security.SAMLSignatureProfileValidator.validateSignatureImpl(SAMLSignatureProfileValidator.java:70)
> > at
> >
> org.opensaml.security.SAMLSignatureProfileValidator.validate(SAMLSignatureProfileValidator.java:56)
> > at com.actuate.server.saml.SAML.validateSignature(SAML.java:202)
>
> Ok, but this doesn't have anything to do with the earlier issue. Are
> you sure you are actually adding the the Signature to the object you are
> signing.
>
> >
> > So should I try to create a "XMLSignature" manager or try to resolve
> > this problem?
> >
>
> No, that is completely unrelated.
>
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20121031/14da12c1/attachment.html
More information about the users
mailing list