Record Class RetainedIssuanceBinding

java.lang.Object
java.lang.Record
zeroecho.pki.api.issuance.RetainedIssuanceBinding
Record Components:
authorityId - exact issuing authority
issuanceId - stable external issuance identity
expectedProfile - frozen profile identity, version and digest
expectedIssuerId - frozen issuer generation
expectedChainPathId - frozen issuance chain path
expectedChainPathCommitment - lowercase SHA-256 chain-path commitment
effectiveCommitment - lowercase SHA-256 effective issuance commitment, including CSR and validity

public record RetainedIssuanceBinding(PkiId authorityId, String issuanceId, CertificateProfileRef expectedProfile, PkiId expectedIssuerId, PkiId expectedChainPathId, String expectedChainPathCommitment, String effectiveCommitment) extends Record
Immutable CSR-free coordinates for exact lookup of retained issuance semantics. This value carries no authorization, credential, runtime state or operation handle. Callers must authenticate and authorize lookup and the returned persisted scope. Construction validates bounded identifiers and commitments without consulting a store.
  • Constructor Details

    • RetainedIssuanceBinding

      public RetainedIssuanceBinding(PkiId authorityId, String issuanceId, CertificateProfileRef expectedProfile, PkiId expectedIssuerId, PkiId expectedChainPathId, String expectedChainPathCommitment, String effectiveCommitment)
      Validates the same frozen coordinate bounds as correlated issuance requests. Identifier validation takes linear time and constant auxiliary memory.
      Throws:
      NullPointerException - if a required identifier or profile is null
      IllegalArgumentException - if an identity or digest is invalid, or an identifier exceeds 4,096 UTF-8 bytes or contains an unpaired surrogate
  • Method Details

    • toString

      public String toString()
      Returns a representation without privileged correlation or issuance coordinates.
      Specified by:
      toString in class Record
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • authorityId

      public PkiId authorityId()
      Returns the value of the authorityId record component.
      Returns:
      the value of the authorityId record component
    • issuanceId

      public String issuanceId()
      Returns the value of the issuanceId record component.
      Returns:
      the value of the issuanceId record component
    • expectedProfile

      public CertificateProfileRef expectedProfile()
      Returns the value of the expectedProfile record component.
      Returns:
      the value of the expectedProfile record component
    • expectedIssuerId

      public PkiId expectedIssuerId()
      Returns the value of the expectedIssuerId record component.
      Returns:
      the value of the expectedIssuerId record component
    • expectedChainPathId

      public PkiId expectedChainPathId()
      Returns the value of the expectedChainPathId record component.
      Returns:
      the value of the expectedChainPathId record component
    • expectedChainPathCommitment

      public String expectedChainPathCommitment()
      Returns the value of the expectedChainPathCommitment record component.
      Returns:
      the value of the expectedChainPathCommitment record component
    • effectiveCommitment

      public String effectiveCommitment()
      Returns the value of the effectiveCommitment record component.
      Returns:
      the value of the effectiveCommitment record component