You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2011/09/08 18:57:40 UTC
svn commit: r1166798 -
/thrift/trunk/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java
Author: jfarrell
Date: Thu Sep 8 16:57:40 2011
New Revision: 1166798
URL: http://svn.apache.org/viewvc?rev=1166798&view=rev
Log:
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.
Modified:
thrift/trunk/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java
Modified: thrift/trunk/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java?rev=1166798&r1=1166797&r2=1166798&view=diff
==============================================================================
--- thrift/trunk/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java (original)
+++ thrift/trunk/lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java Thu Sep 8 16:57:40 2011
@@ -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;