Skip to content

Commit a49ae8d

Browse files
committed
Add getters
1 parent 4d13e3b commit a49ae8d

File tree

1 file changed

+44
-8
lines changed

1 file changed

+44
-8
lines changed

app/src/main/java/fuzion24/device/vulnerability/test/VulnerabilityTestDescriptor.java

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818
* Created by fuzion24 on 11/23/15.
1919
*/
2020
public class VulnerabilityDescriptor {
21-
String CVEorID;
22-
String description;
23-
String impact;
24-
Double CVSSV2Score;
25-
String CVEDate;
26-
List<String> externalLinks;
27-
List<String> altNames;
28-
List<String> patches;
21+
22+
23+
private final String CVEorID;
24+
private final String description;
25+
private final String impact;
26+
private final Double CVSSV2Score;
27+
private final String CVEDate;
28+
private final List<String> externalLinks;
29+
private final List<String> altNames;
30+
private final List<String> patches;
2931

3032
private VulnerabilityDescriptor(String cve,
3133
String desc,
@@ -102,4 +104,38 @@ public static Map<String, VulnerabilityDescriptor> getParsedVulnMap(Context ctx)
102104

103105
return descriptorMap;
104106
}
107+
108+
109+
public String getCVEorID() {
110+
return CVEorID;
111+
}
112+
113+
public String getDescription() {
114+
return description;
115+
}
116+
117+
public String getImpact() {
118+
return impact;
119+
}
120+
121+
public Double getCVSSV2Score() {
122+
return CVSSV2Score;
123+
}
124+
125+
public String getCVEDate() {
126+
return CVEDate;
127+
}
128+
129+
public List<String> getExternalLinks() {
130+
return externalLinks;
131+
}
132+
133+
public List<String> getAltNames() {
134+
return altNames;
135+
}
136+
137+
public List<String> getPatches() {
138+
return patches;
139+
}
140+
105141
}

0 commit comments

Comments
 (0)