Package com.vaadin.appsec.backend.model
Class AppSecData
java.lang.Object
com.vaadin.appsec.backend.model.AppSecData
- All Implemented Interfaces:
Serializable
Data object to store information about vulnerabilities and be (de)serialized
into a JSON file committed to version control.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData object to store the analysis status of a single vulnerability.static enumThe status of the analysis for a single vulnerability. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the timestamp of the most recent vulnerability scan.Gets the vulnerabilities.voidsetLastScan(Instant lastScan) Sets the timestamp of the most recent vulnerability scan.voidsetVulnerabilities(Map<String, AppSecData.VulnerabilityAssessment> vulnerabilities) Sets the vulnerabilities.
-
Constructor Details
-
AppSecData
public AppSecData()
-
-
Method Details
-
getLastScan
Gets the timestamp of the most recent vulnerability scan.- Returns:
- the timestamp
-
setLastScan
Sets the timestamp of the most recent vulnerability scan.- Parameters:
lastScan- the timestamp
-
getVulnerabilities
Gets the vulnerabilities.- Returns:
- the vulnerabilities
-
setVulnerabilities
Sets the vulnerabilities.- Parameters:
vulnerabilities- the vulnerabilities
-