Record Class ServerControlStore.ProtocolRecord
java.lang.Object
java.lang.Record
zeroecho.pki.server.ServerControlStore.ProtocolRecord
- Record Components:
namespace- one closed protocol namespacerecordId- canonical domain identitycommitment- SHA-256 commitment of the complete domain payloadpayload- strict versioned protocol-domain encoding
- Enclosing class:
ServerControlStore
public static record ServerControlStore.ProtocolRecord(String namespace, String recordId, String commitment, byte[] payload)
extends Record
Strict opaque protocol payload framed by the server-control authority.
The owning closed protocol codec owns the payload schema. This record keeps the transactional metadata layer independent of protocol classes while still enforcing canonical key identity and bounded content.
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolRecord(String namespace, String recordId, String commitment, byte[] payload) Validates namespace, identity, commitment, and defensive payload bounds. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommitmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenamespacerecord component.byte[]payload()Returns the protocol payload.recordId()Returns the value of therecordIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProtocolRecord
-
-
Method Details
-
payload
public byte[] payload()Returns the protocol payload.- Returns:
- defensive copy of the bounded payload
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
namespace
-
recordId
-
commitment
Returns the value of thecommitmentrecord component.- Returns:
- the value of the
commitmentrecord component
-