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: [email protected]
For additional commands, e-mail: [email protected]