开发者

XML Signature Generation using IBM SDK 6.0

I'm having an interesting problem trying to sign a SAML2 Assertion using IBM's JRE 6.0. If I run the code under a Sun JDK, it signs the assertions correctly and the signature verifies. If I run the exact same code under the IBM JRE, the Assertion is created correctly, but the signature won't verify. Again, this is the same code, indeed, as it's running from Jetty, it's the exact same Jetty config and WAR file as well. I have two instances of Jetty running on different ports with different JREs but pointing to the same Jetty home. The signatures generated under the Sun JRE validate, but those generated under the IBM JRE do not. I'm frankly stumped and am runn开发者_如何转开发ing out of things to try, so any suggestions would be helpful.


A few years late, but I'm going to answer this myself. The problem was a mix of DOM1 (non-namespace aware) and DOM2+ (namespace aware) calls. By shifting everything to namespace aware DOM2+ calls, the problem went away.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜