Exception when creating the signature using OpenSAML lib
Brent Putman
putmanb at georgetown.edu
Wed Oct 31 18:13:21 EDT 2012
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.
More information about the users
mailing list