首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenSAML %3解组程序为空

OpenSAML %3解组程序为空
EN

Stack Overflow用户
提问于 2016-11-09 21:42:26
回答 2查看 2.4K关注 0票数 2

您好,我目前正在将一个应用程序移植到opensaml3,并遇到以下问题:

代码语言:javascript
复制
InitializationService.initialize();
...
Unmarshaller unmarshaller = Configuration.getUnmarshallerFactory().getUnmarshaller(qName);

我已经用initialize函数替换了opensaml2和之前的DefaultBootstrap。尽管如此,作为marshaller,工厂还是向我返回null。你知道这里出了什么问题吗?

以下是初始化进度的输出:

代码语言:javascript
复制
[main] INFO org.opensaml.core.config.InitializationService - Initializing OpenSAML using the Java Services API
[main] INFO org.opensaml.xmlsec.algorithm.AlgorithmRegistry - Algorithm failed runtime support check, will not be usable: http://www.w3.org/2001/04/xmlenc#ripemd160
[main] INFO org.opensaml.xmlsec.algorithm.AlgorithmRegistry - Algorithm failed runtime support check, will not be usable: http://www.w3.org/2001/04/xmldsig-more#hmac-ripemd160
[main] INFO org.opensaml.xmlsec.algorithm.AlgorithmRegistry - Algorithm failed runtime support check, will not be usable: http://www.w3.org/2001/04/xmldsig-more#rsa-ripemd160
EN

回答 2

Stack Overflow用户

发布于 2017-06-10 19:16:05

我假设您使用的是opensaml v3,所以您应该使用XMLObjectProviderRegistrySupport类创建UnmarshallerFactory对象,如下所示,它工作得很好

代码语言:javascript
复制
UnmarshallerFactory umFactory=XMLObjectProviderRegistrySupport.getUnmarshallerFactory();
    Unmarshaller unmarshaller=umFactory.getUnmarshaller(element);
票数 4
EN

Stack Overflow用户

发布于 2017-03-14 20:01:09

此错误是由于您使用的JCE实现中缺少算法支持。即使您使用BouncyCastle,似乎也不支持某些算法。除非你使用这些算法,否则没有必要担心。将JCE无限强度权限策略jars安装到jre可以解决这个问题。

请参阅:Decrypting encrypted assertion using SAML 2.0 in java using OpenSAML

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40508448

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档