commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1086450 - /commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java
Date Tue, 29 Mar 2011 00:20:09 GMT
Author: sebb
Date: Tue Mar 29 00:20:09 2011
New Revision: 1086450

URL: http://svn.apache.org/viewvc?rev=1086450&view=rev
Log:
Javadoc

Modified:
    commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java

Modified: commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java?rev=1086450&r1=1086449&r2=1086450&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java Tue Mar 29 00:20:09
2011
@@ -54,9 +54,9 @@ public final class IMAPMail
         if (proto != null) {
             System.out.println("Using secure protocol: " + proto);
             imap = new IMAPSClient(proto, true); // implicit
-            // enable the next line if the server certificate has expired:
+            // enable the next line to only check if the server certificate has expired (does
not check chain):
 //            ((IMAPSClient) imap).setTrustManager(TrustManagerUtils.getValidateServerCertificateTrustManager());
-            // OR enable the next line if the server uses a self-signed certificate
+            // OR enable the next line if the server uses a self-signed certificate (no checks)
 //            ((IMAPSClient) imap).setTrustManager(TrustManagerUtils.getAcceptAllTrustManager());
         } else {
             imap = new IMAPClient();



Mime
View raw message