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