Don't hardcode "SunX509" as key algorithm

in XMPPTCPConnection. Instead use the default algorithm.

Fixes SMACK-771.
This commit is contained in:
Florian Schmaus 2017-07-02 18:30:53 +02:00
부모 3d032298a5
커밋 685edde308
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -745,7 +745,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
}
if (ks != null) {
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
String keyManagerFactoryAlgorithm = KeyManagerFactory.getDefaultAlgorithm();
KeyManagerFactory kmf = KeyManagerFactory.getInstance(keyManagerFactoryAlgorithm);
try {
if (pcb == null) {
kmf.init(ks, null);