Record Class FullCrlSnapshotProvenance

java.lang.Object
java.lang.Record
zeroecho.pki.impl.core.continuation.FullCrlSnapshotProvenance
Record Components:
sourceStoreId - source identity captured by the prepared snapshot
revision - captured global revision, including zero for genesis
boundary - captured authoritative byte boundary
commitment - captured lowercase SHA-256 global commitment

public record FullCrlSnapshotProvenance(MetadataStoreId sourceStoreId, long revision, long boundary, String commitment) extends Record
Bounded immutable revocation provenance shared by full-CRL publication and validation. Public visibility bridges unexported implementation packages; this value grants no authority.
  • Constructor Details

    • FullCrlSnapshotProvenance

      public FullCrlSnapshotProvenance(MetadataStoreId sourceStoreId, long revision, long boundary, String commitment)
      Validates bounded canonical provenance without consulting a store.
  • Method Details

    • from

      Reads the exact frozen coordinates from the current full-CRL command.
      Parameters:
      command - current canonical full-CRL command
      Returns:
      immutable captured coordinates
      Throws:
      IllegalArgumentException - if provenance fields or field count are invalid
    • attributes

      public AttributeSet attributes()
      Encodes exactly four typed scalar attributes; no payload or workflow reference is retained.
      Returns:
      canonical source, integer revision/boundary and commitment attributes
    • decode

      public static FullCrlSnapshotProvenance decode(AttributeSet attributes)
      Decodes exactly one correctly typed value for each provenance attribute. Other status attributes are left untouched. Work is O(A) for the existing list-backed attribute set and auxiliary memory is constant.
      Parameters:
      attributes - immutable published status metadata
      Returns:
      exact bounded provenance
      Throws:
      IllegalArgumentException - if any coordinate is absent, duplicated, mistyped or noncanonical
    • 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.
    • sourceStoreId

      public MetadataStoreId sourceStoreId()
      Returns the value of the sourceStoreId record component.
      Returns:
      the value of the sourceStoreId record component
    • revision

      public long revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • boundary

      public long boundary()
      Returns the value of the boundary record component.
      Returns:
      the value of the boundary record component
    • commitment

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