package com.storlead.mail.connection;

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

    public IMAPConnectionFactory(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 IMAPConnection(host, port, user, password);
    }
}

