Record Class DoraInventoryItem

java.lang.Object
java.lang.Record
co.cryptoservice.sdk.DoraInventoryItem
Record Components:
fipsCompliance - what the package implements (name kept for clients)
packageName - the package
status - the status
version - the package version, or unknown

public record DoraInventoryItem(String fipsCompliance, String packageName, String status, String version) extends Record
One element of cryptographicInventory.
  • Constructor Details

    • DoraInventoryItem

      public DoraInventoryItem(String fipsCompliance, String packageName, String status, String version)
      Creates an instance of a DoraInventoryItem record class.
      Parameters:
      fipsCompliance - the value for the fipsCompliance record component
      packageName - the value for the packageName record component
      status - the value for the status record component
      version - the value for the version record component
  • Method Details

    • toString

      public String toString()
      Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.
      Specified by:
      toString in class Record
      Returns:
      a description safe to log
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fipsCompliance

      public String fipsCompliance()
      Returns the value of the fipsCompliance record component.
      Returns:
      the value of the fipsCompliance record component
    • packageName

      public String packageName()
      Returns the value of the packageName record component.
      Returns:
      the value of the packageName record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component