Skip to content

Commit 7509134

Browse files
author
peacekeeper
committed
remove SUN specific references
1 parent 9d901d7 commit 7509134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/main/java/xdi2/client/http/ssl/XDI2X509TrustManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,18 @@ public static void enable() {
9191

9292
// get default trust manager
9393

94-
TrustManagerFactory tmf1 = TrustManagerFactory.getInstance("SunX509", "SunJSSE");
94+
TrustManagerFactory tmf1 = TrustManagerFactory.getInstance("X509");
9595
tmf1.init((KeyStore) null);
9696

9797
TrustManager tms1[] = tmf1.getTrustManagers();
9898
for (TrustManager tm : tms1) if (tm instanceof X509TrustManager) tms.add((X509TrustManager) tm);
9999

100100
// create XDI2 trust manager
101101

102-
KeyStore ks2 = KeyStore.getInstance("JKS", "SUN");
102+
KeyStore ks2 = KeyStore.getInstance("JKS");
103103
ks2.load(XDI2X509TrustManager.class.getResourceAsStream("cacerts.jks"), "changeit".toCharArray());
104104

105-
TrustManagerFactory tmf2 = TrustManagerFactory.getInstance("SunX509", "SunJSSE");
105+
TrustManagerFactory tmf2 = TrustManagerFactory.getInstance("X509");
106106
tmf2.init(ks2);
107107

108108
TrustManager tms2[] = tmf2.getTrustManagers();

0 commit comments

Comments
 (0)