From 251939c6b1b2fc72ce47da97dc7f9844cbd93e16 Mon Sep 17 00:00:00 2001 From: Jake Farrell Date: Thu, 8 Sep 2011 16:57:40 +0000 Subject: [PATCH] THRIFT-1332: TSSLTransportParameters class uses hard coded value keyManagerType: SunX509 Client: java Patch: Vladimir Zhilyaev Convert Keymanger and TrustManager over to using detected jvm values rather than hard coded. git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166798 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/thrift/transport/TSSLTransportFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java b/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java index ae4544e2..f5611aab 100644 --- a/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java +++ b/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java @@ -221,11 +221,11 @@ public class TSSLTransportFactory { protected String protocol = "TLS"; protected String keyStore; protected String keyPass; - protected String keyManagerType = "SunX509"; + protected String keyManagerType = KeyManagerFactory.getDefaultAlgorithm(); protected String keyStoreType = "JKS"; protected String trustStore; protected String trustPass; - protected String trustManagerType = "SunX509"; + protected String trustManagerType = TrustManagerFactory.getDefaultAlgorithm(); protected String trustStoreType = "JKS"; protected String[] cipherSuites; protected boolean clientAuth = false; -- 2.17.1