Record Class CredentialConfirmationProofChallenge

java.lang.Object
java.lang.Record
zeroecho.pki.api.confirmation.CredentialConfirmationProofChallenge
Record Components:
proofCas - exact pending lifecycle and issued challenge correlation coordinates
proofSuiteBinding - exact suite binding used to construct the presentation
expiresAt - authoritative whole-second challenge expiry
maximumResponseBytes - inclusive response bound from 1 through 16384 bytes
presentation - non-empty suite-defined presentation, at most 2048 bytes

public record CredentialConfirmationProofChallenge(CredentialConfirmationProofCas proofCas, ConfirmationProofSuiteBinding proofSuiteBinding, Instant expiresAt, int maximumResponseBytes, byte[] presentation) extends Record
Immutable safe presentation of one issued credential-confirmation proof challenge.

The challenge-record commitment inside proofCas is a non-secret correlation and compare-and-set coordinate. Possession of it grants no authorization, disclosure access, or evidence of key possession.

  • Constructor Details

  • Method Details

    • presentation

      public byte[] presentation()
      Returns a defensive copy of the suite-defined presentation.
      Returns:
      challenge presentation bytes
    • equals

      public boolean equals(Object other)
      Compares presentation bytes by content.
      Specified by:
      equals in class Record
    • hashCode

      public int hashCode()
      Returns a content-based hash code for every component.
      Specified by:
      hashCode in class Record
    • toString

      public String toString()
      Returns a structural description without presentation bytes.
      Specified by:
      toString in class Record
    • proofCas

      public CredentialConfirmationProofCas proofCas()
      Returns the value of the proofCas record component.
      Returns:
      the value of the proofCas record component
    • proofSuiteBinding

      public ConfirmationProofSuiteBinding proofSuiteBinding()
      Returns the value of the proofSuiteBinding record component.
      Returns:
      the value of the proofSuiteBinding record component
    • expiresAt

      public Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • maximumResponseBytes

      public int maximumResponseBytes()
      Returns the value of the maximumResponseBytes record component.
      Returns:
      the value of the maximumResponseBytes record component