Example usage for org.apache.commons.net.smtp SMTPSClient SMTPSClient

List of usage examples for org.apache.commons.net.smtp SMTPSClient SMTPSClient

Introduction

In this page you can find the example usage for org.apache.commons.net.smtp SMTPSClient SMTPSClient.

Prototype

public SMTPSClient(boolean implicit, SSLContext ctx) 

Source Link

Document

Constructor for SMTPSClient, using #DEFAULT_PROTOCOL i.e.

Usage

From source file:org.apache.james.protocols.smtp.AbstractSMTPSServerTest.java

@Override
protected SMTPClient createClient() {
    SMTPSClient client = new SMTPSClient(true, BogusSslContextFactory.getClientContext());
    client.setTrustManager(BogusTrustManagerFactory.getTrustManagers()[0]);
    return client;
}

From source file:org.apache.james.protocols.smtp.AbstractStartTlsSMTPServerTest.java

protected SMTPSClient createClient() {
    SMTPSClient client = new SMTPSClient(false, BogusSslContextFactory.getClientContext());
    client.setTrustManager(BogusTrustManagerFactory.getTrustManagers()[0]);
    return client;
}

From source file:org.apache.james.protocols.smtp.netty.NettyStartTlsSMTPServerTest.java

private SMTPSClient createClient() {
    SMTPSClient client = new SMTPSClient(false, BogusSslContextFactory.getClientContext());
    client.setTrustManager(BogusTrustManagerFactory.getTrustManagers()[0]);
    return client;
}