Class CvssV3

  • All Implemented Interfaces:
    java.io.Serializable

    @NullMarked
    public class CvssV3
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CvssV3.Type  
    • Constructor Summary

      Constructors 
      Constructor Description
      CvssV3​(java.lang.String source, CvssV3.Type type, CvssV3Data cvssData)
      Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV3.
      CvssV3​(java.lang.String source, CvssV3.Type type, CvssV3Data cvssData, @Nullable java.lang.Double exploitabilityScore, @Nullable java.lang.Double impactScore)  
    • Constructor Detail

      • CvssV3

        public CvssV3​(java.lang.String source,
                      CvssV3.Type type,
                      CvssV3Data cvssData)
        Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV3.
        Parameters:
        source - The source for the CvssV3 (required JSON property)
        type - The type for the CvssV3 (required JSON property)
        cvssData - The cvssData for the CvssV3 (required JSON property)
      • CvssV3

        public CvssV3​(java.lang.String source,
                      CvssV3.Type type,
                      CvssV3Data cvssData,
                      @Nullable java.lang.Double exploitabilityScore,
                      @Nullable java.lang.Double impactScore)
    • Method Detail

      • getSource

        public java.lang.String getSource()
        (Required)
        Returns:
        source
      • getType

        public CvssV3.Type getType()
        (Required)
        Returns:
        type
      • getCvssData

        public CvssV3Data getCvssData()
        JSON Schema for Common Vulnerability Scoring System version 3.0

        (Required)

        Returns:
        cvssData
      • getExploitabilityScore

        public @Nullable java.lang.Double getExploitabilityScore()
        CVSS subscore.
        Returns:
        exploitabilityScore
      • getImpactScore

        public @Nullable java.lang.Double getImpactScore()
        CVSS subscore.
        Returns:
        impactScore
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object