Example usage for org.apache.commons.net.pop3 POP3SClient setEnabledCipherSuites

List of usage examples for org.apache.commons.net.pop3 POP3SClient setEnabledCipherSuites

Introduction

In this page you can find the example usage for org.apache.commons.net.pop3 POP3SClient setEnabledCipherSuites.

Prototype

public void setEnabledCipherSuites(String[] cipherSuites) 

Source Link

Document

Controls which particular cipher suites are enabled for use on this connection.

Usage

From source file:com.adaptris.mail.Pop3sReceiverFactory.java

@Override
POP3SClient preConnectConfigure(POP3Client client) throws MailException {
    POP3SClient pop3s = (POP3SClient) super.preConnectConfigure(client);
    if (alwaysTrust()) {
        pop3s.setTrustManager(new AlwaysTrustManager());
    }/*from   ww  w.jav a  2  s . com*/
    if (getCipherSuites() != null) {
        pop3s.setEnabledCipherSuites(asArray(getCipherSuites()));
    }
    if (getProtocols() != null) {
        pop3s.setEnabledProtocols(asArray(getProtocols()));
    }
    return pop3s;
}