package com.storlead.sales.mail.connection;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-05-30 15:22
 */
public class POP3ConnectionFactory extends MailConnectionFactory {
    private final String host;
    private final String port;
    private final String user;
    private final String password;

    public POP3ConnectionFactory(String host, String port, String user, String password) {
        this.host = host;
        this.port = port;
        this.user = user;
        this.password = password;
    }

    @Override
    public MailConnection createConnection() {
        return new POP3Connection(host, port, user, password);
    }
}
