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 ae4544e..f5611aa 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 @@
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;