yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.qianwen.core.notify.provider.email.embedded;
 
import java.util.List;
import java.util.Properties;
 
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/email/embedded/DefaultEmailProperties.class */
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;
    }
}