Package org.apache.commons.net.imap

Examples of org.apache.commons.net.imap.IMAPSClient


        IMAPClient imap;

        if (proto != null) {
            System.out.println("Using secure protocol: " + proto);
            imap = new IMAPSClient(proto, true); // implicit
            // 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 (no checks)
//            ((IMAPSClient) imap).setTrustManager(TrustManagerUtils.getAcceptAllTrustManager());
        } else {
View Full Code Here


        IMAPClient imap;

        if (proto != null) {
            System.out.println("Using secure protocol: " + proto);
            imap = new IMAPSClient(proto, true); // implicit
            // 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 (no checks)
//            ((IMAPSClient) imap).setTrustManager(TrustManagerUtils.getAcceptAllTrustManager());
        } else {
View Full Code Here

TOP

Related Classes of org.apache.commons.net.imap.IMAPSClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.