From de888fc8a106a819c1cd7875b95511bb2dbe0efa Mon Sep 17 00:00:00 2001 From: fkiss Date: Thu, 11 Aug 2016 10:52:29 +0200 Subject: [PATCH] KEYCLOAK-3351 TrustStoreEmailTest fix for ibmjdk --- .../test/java/org/keycloak/testsuite/util/SslMailServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/util/SslMailServer.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/util/SslMailServer.java index 0088e42070..0f87d49ab7 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/util/SslMailServer.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/util/SslMailServer.java @@ -91,7 +91,7 @@ public class SslMailServer { ksKeys.load(keyStoreIS, keyStorePassphrase); // KeyManager decides which key material to use. - KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); + KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); kmf.init(ksKeys, keyStorePassphrase); // Trust store for client authentication. @@ -101,7 +101,7 @@ public class SslMailServer { ksTrust.load(trustStoreIS, trustStorePassphrase); // TrustManager decides which certificate authorities to use. - TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509"); + TrustManagerFactory tmf = TrustManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); tmf.init(ksTrust); final SSLContext sslContext = SSLContext.getInstance("TLS");