Record Class EnrollmentEndpointRegistry.Snapshot
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentEndpointRegistry.Snapshot
- Record Components:
endpoint- immutable complete configurationrevision- positive monotonic record revisionactive- false for a removed endpointcommitment- SHA-256 commitment of the exact persisted snapshot
- Enclosing class:
EnrollmentEndpointRegistry
public static record EnrollmentEndpointRegistry.Snapshot(EnrollmentEndpoint endpoint, long revision, boolean active, String commitment)
extends Record
Exact persisted endpoint snapshot suitable for binding an approval request.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(EnrollmentEndpoint endpoint, long revision, boolean active, String commitment) Validates snapshot metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.Returns the value of thecommitmentrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
Validates snapshot metadata.
-
-
Method Details
-
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. -
endpoint
-
revision
-
active
-
commitment
Returns the value of thecommitmentrecord component.- Returns:
- the value of the
commitmentrecord component
-