package com.qianwen.core.notify.provider.email.embedded;
|
|
import java.util.List;
|
import java.util.Properties;
|
|
public class DefaultEmailProperties {
|
private String host;
|
private int port;
|
private String username;
|
private String password;
|
private String sender;
|
private List<ConfigProperty> properties;
|
|
public void setHost(final String host) {
|
this.host = host;
|
}
|
|
public void setPort(final int port) {
|
this.port = port;
|
}
|
|
public void setUsername(final String username) {
|
this.username = username;
|
}
|
|
public void setPassword(final String password) {
|
this.password = password;
|
}
|
|
public void setSender(final String sender) {
|
this.sender = sender;
|
}
|
|
public void setProperties(final List<ConfigProperty> properties) {
|
this.properties = properties;
|
}
|
|
public String getHost() {
|
return this.host;
|
}
|
|
public int getPort() {
|
return this.port;
|
}
|
|
public String getUsername() {
|
return this.username;
|
}
|
|
public String getPassword() {
|
return this.password;
|
}
|
|
public String getSender() {
|
return this.sender;
|
}
|
|
public List<ConfigProperty> getProperties() {
|
return this.properties;
|
}
|
|
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/email/embedded/DefaultEmailProperties$ConfigProperty.class */
|
public static class ConfigProperty {
|
private String name;
|
private String value;
|
private String description;
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setValue(final String value) {
|
this.value = value;
|
}
|
|
public void setDescription(final String description) {
|
this.description = description;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getValue() {
|
return this.value;
|
}
|
|
public String getDescription() {
|
return this.description;
|
}
|
}
|
|
public Properties createJavaMailProperties() {
|
Properties properties = new Properties();
|
if (this.properties != null) {
|
for (ConfigProperty property : this.properties) {
|
properties.put(property.getName(), property.getValue());
|
}
|
}
|
return properties;
|
}
|
}
|