質問

I have decrypted a SAML assertion using Opensaml. 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"

(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. So Signature validation will succeed.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top