2016-11-09 1 views
0

안녕입니다 :OpenSAML 3 Unmarshaller에 내가 현재 다음 문제에 opensaml3하고 실행하는 응용 프로그램을 포팅하고 널

InitializationService.initialize(); 
... 
Unmarshaller unmarshaller = Configuration.getUnmarshallerFactory().getUnmarshaller(qName); 

나는 opensaml2에서 DefaultBootstrap를 교체하고 초기화 기능에 의해 이전했다. 아직도 공장은 나를 마샬 러로 돌려 보내고있다. 무엇이 잘못 되었습니까?

[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 

답변

1

이 오류는 사용하여 JCE의 구현 알고리즘 지원의 부족에 기인한다 :

는 초기화 진행의 출력이다. BouncyCastle을 사용하더라도 일부 알고리즘은 지원되지 않는 것 같습니다. 이 알고리즘을 사용하지 않으면 걱정할 필요가 없습니다. JCE 무제한의 강도 관할 정책 jar을 jre에 설치하면 (자) 해결할 수 있습니다.
참조 : Decrypting encrypted assertion using SAML 2.0 in java using OpenSAML도 마찬가지입니다.

1

나는 당신이 그렇게 당신은이 같은 XMLObjectProviderRegistrySupport 클래스와 UnmarshallerFactory 객체를 생성한다 그것은 완벽하게

UnmarshallerFactory umFactory=XMLObjectProviderRegistrySupport.getUnmarshallerFactory(); 
    Unmarshaller unmarshaller=umFactory.getUnmarshaller(element); 
작동 opensaml v3의 을 사용하고 supose
관련 문제