You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/07/06 15:07:48 UTC
svn commit: r960891 -
/jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/TrustAllSSLSocketFactory.java
Author: sebb
Date: Tue Jul 6 13:07:48 2010
New Revision: 960891
URL: http://svn.apache.org/viewvc?rev=960891&view=rev
Log:
Javadoc
Modified:
jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/TrustAllSSLSocketFactory.java
Modified: jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/TrustAllSSLSocketFactory.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/TrustAllSSLSocketFactory.java?rev=960891&r1=960890&r2=960891&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/TrustAllSSLSocketFactory.java (original)
+++ jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/TrustAllSSLSocketFactory.java Tue Jul 6 13:07:48 2010
@@ -30,10 +30,7 @@ import javax.net.ssl.X509TrustManager;
/**
* This class can be used as a SocketFactory with SSL-connections.
- * Its purpose is to ensure that all certificates - no matter from which CA -are accepted to secure the SSL-connection.
- * It has to be kept in mind that a SocketFactory must not be used with StartTLS, because the javaMail-api assumes
- * to use SSL when using the socketFactory.class- or socketFactory.fallback-property.
- *
+ * Its purpose is to ensure that all certificates - no matter from which CA - are accepted to secure the SSL-connection.
*/
public class TrustAllSSLSocketFactory extends SSLSocketFactory {
@@ -45,7 +42,7 @@ public class TrustAllSSLSocketFactory ex
public TrustAllSSLSocketFactory(){
SSLContext sslcontext = null;
try {
- sslcontext = SSLContext.getInstance( "TLS");
+ sslcontext = SSLContext.getInstance("TLS"); // $NON-NLS-1$
sslcontext.init( null, new TrustManager[]{
new X509TrustManager() {
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org