1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model.certificates;
12
13 import java.io.Serializable;
14 import java.util.ArrayList;
15 import java.util.Collection;
16 import java.util.List;
17
18
19
20
21 public class SslHostConfigInfo implements Serializable {
22
23
24 private static final long serialVersionUID = 8264467511525154728L;
25
26
27 private String hostName;
28
29
30 private List<Cert> trustStoreCerts;
31
32
33 private List<CertificateInfo> certificateInfos;
34
35
36 private String protocols;
37
38
39 private String ciphers;
40
41
42 private String certificateVerification;
43
44
45 private String certificateVerificationDepth;
46
47
48 private String insecureRenegotiation;
49
50
51 private String truststoreFile;
52
53
54 private String truststorePassword;
55
56
57 private String truststoreProvider;
58
59
60 private String truststoreType;
61
62
63 private String truststoreAlgorithm;
64
65
66
67
68
69
70 public String getHostName() {
71 return hostName;
72 }
73
74
75
76
77
78
79 public void setHostName(String hostName) {
80 this.hostName = hostName;
81 }
82
83
84
85
86
87
88 public String getCertificateVerification() {
89 return certificateVerification;
90 }
91
92
93
94
95
96
97 public void setCertificateVerification(String certificateVerification) {
98 this.certificateVerification = certificateVerification;
99 }
100
101
102
103
104
105
106 public String getProtocols() {
107 return protocols;
108 }
109
110
111
112
113
114
115 public void setProtocols(String protocols) {
116 this.protocols = protocols;
117 }
118
119
120
121
122
123
124 public String getCiphers() {
125 return ciphers;
126 }
127
128
129
130
131
132
133 public void setCiphers(String ciphers) {
134 this.ciphers = ciphers;
135 }
136
137
138
139
140
141
142 public String getCertificateVerificationDepth() {
143 return certificateVerificationDepth;
144 }
145
146
147
148
149
150
151 public void setCertificateVerificationDepth(String certificateVerificationDepth) {
152 this.certificateVerificationDepth = certificateVerificationDepth;
153 }
154
155
156
157
158
159
160 public String getInsecureRenegotiation() {
161 return insecureRenegotiation;
162 }
163
164
165
166
167
168
169 public void setInsecureRenegotiation(String insecureRenegotiation) {
170 this.insecureRenegotiation = insecureRenegotiation;
171 }
172
173
174
175
176
177
178 public String getTruststoreFile() {
179 return truststoreFile;
180 }
181
182
183
184
185
186
187 public void setTruststoreFile(String truststoreFile) {
188 this.truststoreFile = truststoreFile;
189 }
190
191
192
193
194
195
196 public String getTruststorePassword() {
197 return truststorePassword;
198 }
199
200
201
202
203
204
205 public void setTruststorePassword(String truststorePassword) {
206 this.truststorePassword = truststorePassword;
207 }
208
209
210
211
212
213
214 public String getTruststoreProvider() {
215 return truststoreProvider;
216 }
217
218
219
220
221
222
223 public void setTruststoreProvider(String truststoreProvider) {
224 this.truststoreProvider = truststoreProvider;
225 }
226
227
228
229
230
231
232 public String getTruststoreType() {
233 return truststoreType;
234 }
235
236
237
238
239
240
241 public void setTruststoreType(String truststoreType) {
242 this.truststoreType = truststoreType;
243 }
244
245
246
247
248
249
250 public String getTruststoreAlgorithm() {
251 return truststoreAlgorithm;
252 }
253
254
255
256
257
258
259 public void setTruststoreAlgorithm(String truststoreAlgorithm) {
260 this.truststoreAlgorithm = truststoreAlgorithm;
261 }
262
263
264
265
266
267
268 public List<Cert> getTrustStoreCerts() {
269 return trustStoreCerts == null ? List.of() : new ArrayList<>(trustStoreCerts);
270 }
271
272
273
274
275
276
277 public void setTrustStoreCerts(Collection<Cert> trustStoreCerts) {
278 this.trustStoreCerts = trustStoreCerts == null ? List.of() : new ArrayList<>(trustStoreCerts);
279 }
280
281
282
283
284
285
286 public List<CertificateInfo> getCertificateInfos() {
287 return certificateInfos == null ? List.of() : new ArrayList<>(certificateInfos);
288 }
289
290
291
292
293
294
295 public void setCertificateInfos(Collection<CertificateInfo> certificateInfos) {
296 this.certificateInfos =
297 certificateInfos == null ? List.of() : new ArrayList<>(certificateInfos);
298 }
299
300 }