public class Vulnerability extends Object
Modifier and Type | Field and Description |
---|---|
protected Date |
createTime
Creation time of event in database, cannot be null
|
protected String |
cveEntry |
protected String |
description
Free-form textual description of the event
|
protected int |
id
Unique identifier for the event, cannot be null
|
protected String |
ipAddr
IP Address of node's interface
|
protected Date |
lastAttemptTime
Last time the vulnerability scan was attempted, cannot be null
|
protected Date |
lastScanTime
Last time the vulnerability was scanned, cannot be null
|
protected String |
logMessage
Formatted display text to control how the event will appear in the
browser.
|
protected Integer |
nodeId
Unique integer identifier for node, can be null
|
protected String |
nodeLabel
The human-readable name of the node of this event.
|
protected int |
pluginId
Unique integer identifier of the plugin that generated this
vulnerability.
|
protected int |
pluginSubId
Specific vulnerability type generated by the plugin.
|
protected Integer |
port
Port that the vulnerability affects.
|
protected String |
protocol
Network protocol of the attack (TCP, UDP, ICMP)
|
protected Date |
resolvedTime
Time the vulnerability was resolved, can be null
|
protected Integer |
serviceId
Unique integer identifier of service/poller package, can be null
|
protected String |
serviceName
Human-readable name of the service
|
protected OnmsSeverity |
severity
The Severity of event.
|
Modifier | Constructor and Description |
---|---|
protected |
Vulnerability()
Only the
VulnerabilityFactory should instantiate this
object. |
Modifier and Type | Method and Description |
---|---|
Date |
getCreateTime()
Getter for the field
createTime . |
String |
getCveEntry()
can be null
|
String |
getDescription()
Getter for the field
description . |
int |
getId()
Getter for the field
id . |
String |
getIpAddress()
can be null
|
Date |
getLastAttemptTime()
Getter for the field
lastAttemptTime . |
Date |
getLastScanTime()
Getter for the field
lastScanTime . |
String |
getLogMessage()
Getter for the field
logMessage . |
Integer |
getNodeId()
can be null
|
String |
getNodeLabel()
can be null
|
int |
getPluginId()
Getter for the field
pluginId . |
int |
getPluginSubId()
Getter for the field
pluginSubId . |
Integer |
getPort()
can be null
|
String |
getProtocol()
can be null
|
Date |
getResolvedTime()
can be null
|
Integer |
getServiceId()
Can be null
|
String |
getServiceName()
Getter for the field
serviceName . |
OnmsSeverity |
getSeverity()
Getter for the field
severity . |
boolean |
isResolved()
isResolved
|
protected int id
protected Integer nodeId
protected String ipAddr
protected Integer serviceId
protected String serviceName
protected Date createTime
protected Date lastAttemptTime
protected Date lastScanTime
protected Date resolvedTime
protected String description
protected String logMessage
protected OnmsSeverity severity
1 = Indeterminate 2 = Cleared (unimplemented at this time) 3 = Warning 4 = Minor 5 = Major 6 = Critical
protected String nodeLabel
protected int pluginId
protected int pluginSubId
protected Integer port
protected String protocol
protected String cveEntry
protected Vulnerability()
VulnerabilityFactory
should instantiate this
object.public int getId()
Getter for the field id
.
public Date getLastAttemptTime()
Getter for the field lastAttemptTime
.
Date
object.public Date getLastScanTime()
Getter for the field lastScanTime
.
Date
object.public boolean isResolved()
isResolved
public OnmsSeverity getSeverity()
Getter for the field severity
.
OnmsSeverity
object.public String getServiceName()
Getter for the field serviceName
.
String
object.public String getDescription()
Getter for the field description
.
String
object.public String getLogMessage()
Getter for the field logMessage
.
String
object.public int getPluginId()
Getter for the field pluginId
.
public int getPluginSubId()
Getter for the field pluginSubId
.
Copyright © 2015. All Rights Reserved.