Record Class NuggetConfigurationSummary

java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetConfigurationSummary
Record Components:
adminState - administration state
adminEnabled - configured administration enablement
unsafeDeveloperMode - whether unsafe developer mode is active
pinSourceType - configured source classification
lowerSafetyPinSource - whether the configured source is lower safety
verifierFormat - safe verifier format version, or empty string
metadata - redacted safe metadata

public record NuggetConfigurationSummary(NuggetAdminState adminState, boolean adminEnabled, boolean unsafeDeveloperMode, NuggetPinSourceType pinSourceType, boolean lowerSafetyPinSource, String verifierFormat, Map<String,String> metadata) extends Record
Safe public configuration summary for nugget administration.

The summary is immutable and contains source classifications only. It never contains PINs, verifier bytes, hashes, salts, KDF output, file contents, environment values, or reusable authentication material.

  • Constructor Details

    • NuggetConfigurationSummary

      public NuggetConfigurationSummary(NuggetAdminState adminState, boolean adminEnabled, boolean unsafeDeveloperMode, NuggetPinSourceType pinSourceType, boolean lowerSafetyPinSource, String verifierFormat, Map<String,String> metadata)
      Creates a defensive immutable summary.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • adminState

      public NuggetAdminState adminState()
      Returns the value of the adminState record component.
      Returns:
      the value of the adminState record component
    • adminEnabled

      public boolean adminEnabled()
      Returns the value of the adminEnabled record component.
      Returns:
      the value of the adminEnabled record component
    • unsafeDeveloperMode

      public boolean unsafeDeveloperMode()
      Returns the value of the unsafeDeveloperMode record component.
      Returns:
      the value of the unsafeDeveloperMode record component
    • pinSourceType

      public NuggetPinSourceType pinSourceType()
      Returns the value of the pinSourceType record component.
      Returns:
      the value of the pinSourceType record component
    • lowerSafetyPinSource

      public boolean lowerSafetyPinSource()
      Returns the value of the lowerSafetyPinSource record component.
      Returns:
      the value of the lowerSafetyPinSource record component
    • verifierFormat

      public String verifierFormat()
      Returns the value of the verifierFormat record component.
      Returns:
      the value of the verifierFormat record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component