简体   繁体   English

Opensaml断言签名验证未通过解密的断言

[英]Opensaml Assertion Signature validation failed for decrypted Assertion

I have decrypted a SAML assertion using Opensaml. 我已经使用Opensaml解密了SAML断言。 Although decryption happens without a error, when I tried to validate the Signature of that Assertion it fails with the error 尽管解密发生时没有错误,但是当我尝试验证该断言的签名时,它失败并显示错误

"org.apache.xml.security.signature.MissingResourceFailureException: The Reference for URI #eimakmeiiebhiefoopoogamnnbibdpkfloophhdd has no XMLSignatureInput" “ org.apache.xml.security.signature.MissingResourceFailureException:URI #eimakmeiiebhiefoopoogamnnbibdpkfloophhdd的参考没有XMLSignatureInput”

(For the same configuration if I didn't use encryption, signature validation happens fine) (对于相同的配置,如果我不使用加密,则可以进行签名验证)

Found that this is an issue with the Decrypter. 发现这是解密程序的问题。 Problem was decrypted Assertion wasn't properly rooted. 问题已解密断言没有正确扎根。 By calling setRootInNewDocument(true) of the Decrypter before the decryption, you can have properly rooted Assertion. 通过在解密之前调用Decrypter的setRootInNewDocument(true) ,可以正确植根Assertion。 So Signature validation will succeed. 因此,签名验证将成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM