Record Class HybridCertificateMode.TwinCertificate

java.lang.Object
java.lang.Record
zeroecho.pki.api.hybrid.HybridCertificateMode.TwinCertificate
All Implemented Interfaces:
HybridCertificateMode
Enclosing interface:
HybridCertificateMode

public static record HybridCertificateMode.TwinCertificate() extends Record implements HybridCertificateMode
Twin-certificate mode: two parallel CA hierarchies, one classical and one post-quantum, are maintained and cross-referenced at the deployment level.

Each individual certificate in the hierarchy is a standard single-algorithm X.509 certificate; the twin relationship is a deployment-level configuration, not a per-certificate property. Profiles using this mode carry no additional extensions beyond the primary algorithm fields. The mode is a semantic marker in the profile that tooling can use to coordinate twin deployments.

Since:
1.0
  • Field Details

  • Constructor Details

    • TwinCertificate

      public TwinCertificate()
      Creates an instance of a TwinCertificate record class.
  • Method Details

    • toString

      public final 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.
      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.