Class DetectedVulnerability

java.lang.Object
org.axonframework.updates.api.DetectedVulnerability

public class DetectedVulnerability extends Object
Represents a vulnerability in an AxonIQ Artifact in use. This object contains information about the artifact's group ID, artifact ID, severity of the vulnerability, the recommended fix version, and a description of the vulnerability.
Since:
4.12.0
Author:
Mitchell Herrijgers
  • Constructor Details

    • DetectedVulnerability

      public DetectedVulnerability(String groupId, String artifactId, DetectedVulnerabilitySeverity severity, String fixVersion, String description)
      Constructs a DetectedVulnerability with the given groupId, artifactId, severity, fixVersion, and description.
      Parameters:
      groupId - The group ID of the artifact.
      artifactId - The artifact ID of the artifact.
      severity - The severity of the vulnerability, represented by the DetectedVulnerabilitySeverity enum.
      fixVersion - The recommended version to fix the vulnerability.
      description - A description of the vulnerability, providing details about its nature and impact.
  • Method Details

    • groupId

      public String groupId()
      Returns the group identifier of this detected vulnerability.
      Returns:
      The group identifier of this detected vulnerability.
    • artifactId

      public String artifactId()
      Returns the artifact identifier of this detected vulnerability.
      Returns:
      The artifact identifier of this detected vulnerability.
    • severity

      public DetectedVulnerabilitySeverity severity()
      Returns the severity of this detected vulnerability.
      Returns:
      The severity of this detected vulnerability.
    • fixVersion

      public String fixVersion()
      Returns the fix version of this detected vulnerability.
      Returns:
      The fix version of this detected vulnerability.
    • description

      public String description()
      Returns the description of this detected vulnerability.
      Returns:
      The description of this detected vulnerability.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object