THRIFT-1332: TSSLTransportParameters class uses hard coded value keyManagerType:...
authorJake Farrell <jfarrell@apache.org>
Thu, 8 Sep 2011 16:57:40 +0000 (16:57 +0000)
committerJake Farrell <jfarrell@apache.org>
Thu, 8 Sep 2011 16:57:40 +0000 (16:57 +0000)
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

lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java

index ae4544e..f5611aa 100644 (file)
@@ -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;