Opensaml error receiving correct unmarshaller

我与影子孤独终老i 提交于 2019-11-28 13:53:55

I found that there is not unmarshallers register as there is not initialization in the library:

Important piece of code:

// Initialize the library
DefaultBootstrap.bootstrap();

In OpenSAML3 you have to first make sure to include the opensaml-saml-impl artifact in your dependencies, since all the marshallers and unmarshallers are implemented there.

Then, as @Goblins and @Pegerto pointed out, you have to call InitializationService.initialize(). I have found this link to be useful for doing a correct initialization when using Dependency Injection https://github.com/apereo/cas/blob/master/support/cas-server-support-saml-core/src/main/java/org/apereo/cas/support/saml/OpenSamlConfigBean.java.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!