1 /*
2 * Licensed under the GPL License. You may not use this file except in compliance with the License.
3 * You may obtain a copy of the License at
4 *
5 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6 *
7 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9 * PURPOSE.
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 * The Class ConnectorInfo.
20 */
21 public class ConnectorInfo implements Serializable {
22
23 /** The Constant serialVersionUID. */
24 private static final long serialVersionUID = 5927447793822367835L;
25
26 /** The name. */
27 private String name;
28
29 /** The default SslHostConfig name. */
30 private String defaultSslHostConfigName;
31
32 /** SslHostConfig infos. */
33 private List<SslHostConfigInfo> sslHostConfigInfos;
34
35 /**
36 * Gets the name.
37 *
38 * @return the name
39 */
40 public String getName() {
41 return name;
42 }
43
44 /**
45 * Sets the name.
46 *
47 * @param name the new name
48 */
49 public void setName(String name) {
50 this.name = name;
51 }
52
53 /**
54 * Gets the SslHostConfig infos.
55 *
56 * @return the SslHostConfig infos
57 */
58 public List<SslHostConfigInfo> getSslHostConfigInfos() {
59 return sslHostConfigInfos == null ? List.of() : new ArrayList<>(sslHostConfigInfos);
60 }
61
62 /**
63 * Sets SslHostConfig infos.
64 *
65 * @param sslHostConfigInfos new SslHostConfig infos
66 */
67 public void setSslHostConfigInfos(Collection<SslHostConfigInfo> sslHostConfigInfos) {
68 this.sslHostConfigInfos =
69 sslHostConfigInfos == null ? List.of() : new ArrayList<>(sslHostConfigInfos);
70 }
71
72 /**
73 * Gets the default SslHostConfig name.
74 *
75 * @return the default SslHostConfig name
76 */
77 public String getDefaultSslHostConfigName() {
78 return defaultSslHostConfigName;
79 }
80
81 /**
82 * Sets the default SslHostConfig name.
83 *
84 * @param defaultSslHostConfigName the new default SslHostConfig name
85 */
86 public void setDefaultSslHostConfigName(String defaultSslHostConfigName) {
87 this.defaultSslHostConfigName = defaultSslHostConfigName;
88 }
89
90 }