Class PluginRiskInformation

All Implemented Interfaces:
java.lang.Comparable<PluginRiskInformation>, DbPojo, HashLookupPojo<PluginRiskInformation>

@Entity(name="PluginRiskInformation")
public class PluginRiskInformation
extends HashLookupTemplate<PluginRiskInformation>
Represents a reusable "object lookup", for the "risk_information" object included in the plugin attributes returned from the Nessus API at /scans/<scan-id>
  • Field Details

  • Constructor Details

  • Method Details

    • _prepare

      public void _prepare()
      Description copied from interface: DbPojo
      Perform any operations necessary to prepare this pojo for insertion or updating in the database
    • _set

      public void _set​(PluginRiskInformation o)
      Description copied from interface: HashLookupPojo
      Synchronize the values of two matching POJOs which represent the same DB record
      Parameters:
      o - the other pojo representing the same DB record, which the values should be taken from
    • _match

      public boolean _match​(PluginRiskInformation o)
      Description copied from interface: HashLookupPojo
      Determine if this pojo represents the same DB record as another POJO of the same type. Note that this is NOT the same as the equals() method (though it may be in certain cases). Equals may be used to determine if two pojos of the same type contain all of the same values, regardless of whether they represent the same DB record (depending on implementation) while _match determines only if they represent the same DB record even if some of the values may not be equivalent. In many cases the two methods may be the same, but their purpose is different.
      Parameters:
      o - other pojo to match
      Returns:
      true if the two pojos represent the same DB record, false if not
    • getRiskFactor

      public PluginRiskFactor getRiskFactor()
      Gets risk factor.
      Returns:
      the risk factor
    • setRiskFactor

      public void setRiskFactor​(PluginRiskFactor riskFactor)
      Sets risk factor.
      Parameters:
      riskFactor - the risk factor
    • getCvssBaseScore

      public VulnerabilityScore getCvssBaseScore()
      Gets cvss base score.
      Returns:
      the cvss base score
    • setCvssBaseScore

      public void setCvssBaseScore​(VulnerabilityScore cvssBaseScore)
      Sets cvss base score.
      Parameters:
      cvssBaseScore - the cvss base score
    • getCvssVector

      public CvssVector getCvssVector()
      Gets cvss vector.
      Returns:
      the cvss vector
    • setCvssVector

      public void setCvssVector​(CvssVector cvssVector)
      Sets cvss vector.
      Parameters:
      cvssVector - the cvss vector
    • getCvssTemporalScore

      public VulnerabilityScore getCvssTemporalScore()
      Gets cvss temporal score.
      Returns:
      the cvss temporal score
    • setCvssTemporalScore

      public void setCvssTemporalScore​(VulnerabilityScore cvssTemporalScore)
      Sets cvss temporal score.
      Parameters:
      cvssTemporalScore - the cvss temporal score
    • getCvssTemporalVector

      public CvssTemporalVector getCvssTemporalVector()
      Gets cvss temporal vector.
      Returns:
      the cvss temporal vector
    • setCvssTemporalVector

      public void setCvssTemporalVector​(CvssTemporalVector cvssTemporalVector)
      Sets cvss temporal vector.
      Parameters:
      cvssTemporalVector - the cvss temporal vector
    • getCvss3BaseScore

      public VulnerabilityScore getCvss3BaseScore()
      Gets cvss 3 base score.
      Returns:
      the cvss 3 base score
    • setCvss3BaseScore

      public void setCvss3BaseScore​(VulnerabilityScore cvss3BaseScore)
      Sets cvss 3 base score.
      Parameters:
      cvss3BaseScore - the cvss 3 base score
    • getCvss3Vector

      public CvssVector getCvss3Vector()
      Gets cvss 3 vector.
      Returns:
      the cvss 3 vector
    • setCvss3Vector

      public void setCvss3Vector​(CvssVector cvss3Vector)
      Sets cvss 3 vector.
      Parameters:
      cvss3Vector - the cvss 3 vector
    • getCvss3TemporalScore

      public VulnerabilityScore getCvss3TemporalScore()
      Gets cvss 3 temporal score.
      Returns:
      the cvss 3 temporal score
    • setCvss3TemporalScore

      public void setCvss3TemporalScore​(VulnerabilityScore cvss3TemporalScore)
      Sets cvss 3 temporal score.
      Parameters:
      cvss3TemporalScore - the cvss 3 temporal score
    • getCvss3TemporalVector

      public CvssTemporalVector getCvss3TemporalVector()
      Gets cvss 3 temporal vector.
      Returns:
      the cvss 3 temporal vector
    • setCvss3TemporalVector

      public void setCvss3TemporalVector​(CvssTemporalVector cvss3TemporalVector)
      Sets cvss 3 temporal vector.
      Parameters:
      cvss3TemporalVector - the cvss 3 temporal vector