Record Class FullCrlSnapshotProvenance
java.lang.Object
java.lang.Record
zeroecho.pki.impl.core.continuation.FullCrlSnapshotProvenance
- Record Components:
sourceStoreId- source identity captured by the prepared snapshotrevision- captured global revision, including zero for genesisboundary- captured authoritative byte boundarycommitment- 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 Summary
ConstructorsConstructorDescriptionFullCrlSnapshotProvenance(MetadataStoreId sourceStoreId, long revision, long boundary, String commitment) Validates bounded canonical provenance without consulting a store. -
Method Summary
Modifier and TypeMethodDescriptionEncodes exactly four typed scalar attributes; no payload or workflow reference is retained.longboundary()Returns the value of theboundaryrecord component.Returns the value of thecommitmentrecord component.static FullCrlSnapshotProvenancedecode(AttributeSet attributes) Decodes exactly one correctly typed value for each provenance attribute.final booleanIndicates whether some other object is "equal to" this one.static FullCrlSnapshotProvenancefrom(DomainCommandEncoding.Decoded command) Reads the exact frozen coordinates from the current full-CRL command.final inthashCode()Returns a hash code value for this object.longrevision()Returns the value of therevisionrecord component.Returns the value of thesourceStoreIdrecord component.final StringtoString()Returns a string representation of this record class.
-
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
Encodes exactly four typed scalar attributes; no payload or workflow reference is retained.- Returns:
- canonical source, integer revision/boundary and commitment attributes
-
decode
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
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sourceStoreId
Returns the value of thesourceStoreIdrecord component.- Returns:
- the value of the
sourceStoreIdrecord component
-
revision
-
boundary
-
commitment
Returns the value of thecommitmentrecord component.- Returns:
- the value of the
commitmentrecord component
-