Record Class EnrollmentKeygenArtifact

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentKeygenArtifact
Record Components:
id - stable replay-derived artifact identity
revision - positive mutation revision
template - exact original verified template and complete frozen policy
algorithm - selected permitted key-generation algorithm
maximumKeySizeBits - original endpoint generation bound
maximumCiphertextBytes - reserved ciphertext capacity
maximumGeneratedRequestBytes - reserved generated CSR capacity
deliveryDeadline - fixed recipient-validity-capped delivery deadline
state - authoritative generation/delivery phase
artifact - exact attached ciphertext, absent until atomic enrollment attachment
bytesReleased - true only after durable deletion permits releasing byte capacity

public record EnrollmentKeygenArtifact(String id, long revision, EnrollmentTransaction.Intent template, String algorithm, int maximumKeySizeBits, long maximumCiphertextBytes, int maximumGeneratedRequestBytes, Instant deliveryDeadline, EnrollmentKeygenArtifact.State state, Optional<EnrollmentTransaction.ArtifactBinding> artifact, boolean bytesReleased) extends Record
Durable server-keygen reservation and encrypted delivery lifecycle. The original template is retained by the domain request store; no raw key or ciphertext is embedded in this record. Descriptor count remains charged after terminal cleanup.
  • Constructor Details

  • Method Details

    • commitment

      public String commitment()
      Returns complete revision-sensitive record commitment.
      Returns:
      complete revision-sensitive record commitment
    • generationCommitment

      public String generationCommitment()
      Returns immutable reservation commitment included in the generated issuance intent.
      Returns:
      immutable reservation commitment included in the generated issuance intent
    • enrollmentId

      public String enrollmentId()
      Returns exact linked enrollment identity, whether delivery remains available or expired.
      Returns:
      exact linked enrollment identity, whether delivery remains available or expired
    • toString

      public 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • revision

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

      public EnrollmentTransaction.Intent template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • algorithm

      public String algorithm()
      Returns the value of the algorithm record component.
      Returns:
      the value of the algorithm record component
    • maximumKeySizeBits

      public int maximumKeySizeBits()
      Returns the value of the maximumKeySizeBits record component.
      Returns:
      the value of the maximumKeySizeBits record component
    • maximumCiphertextBytes

      public long maximumCiphertextBytes()
      Returns the value of the maximumCiphertextBytes record component.
      Returns:
      the value of the maximumCiphertextBytes record component
    • maximumGeneratedRequestBytes

      public int maximumGeneratedRequestBytes()
      Returns the value of the maximumGeneratedRequestBytes record component.
      Returns:
      the value of the maximumGeneratedRequestBytes record component
    • deliveryDeadline

      public Instant deliveryDeadline()
      Returns the value of the deliveryDeadline record component.
      Returns:
      the value of the deliveryDeadline record component
    • state

      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • artifact

      Returns the value of the artifact record component.
      Returns:
      the value of the artifact record component
    • bytesReleased

      public boolean bytesReleased()
      Returns the value of the bytesReleased record component.
      Returns:
      the value of the bytesReleased record component