From: Jake Farrell Date: Thu, 8 Sep 2011 16:57:40 +0000 (+0000) Subject: THRIFT-1332: TSSLTransportParameters class uses hard coded value keyManagerType:... X-Git-Tag: 0.8.0~96 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=251939c6b1b2fc72ce47da97dc7f9844cbd93e16;p=common%2Fthrift.git 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 --- 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;