Record Class HybridSignatureProfile

java.lang.Object
java.lang.Record
zeroecho.sdk.hybrid.signature.HybridSignatureProfile
Record Components:
classicSigId - canonical identifier of the classical signature algorithm (for example "Ed25519")
pqcSigId - canonical identifier of the post-quantum signature algorithm (for example "ML-DSA-65")
classicSpec - optional ContextSpec for the classical signature engine; may be null
pqcSpec - optional ContextSpec for the post-quantum signature engine; may be null
verifyRule - aggregation rule applied during verification

public record HybridSignatureProfile(String classicSigId, String pqcSigId, ContextSpec classicSpec, ContextSpec pqcSpec, HybridSignatureProfile.VerifyRule verifyRule) extends Record
Immutable definition of a hybrid signature composition. HybridSignatureProfile is a pure configuration object that defines:
  • which two signature algorithms participate in the hybrid composition,
  • their fixed ordering within the produced signature trailer,
  • the verification aggregation rule applied to their results.

The profile is the single source of truth for hybrid signature processing. No algorithm identifiers or metadata are embedded in the signature trailer itself; both signing and verification sides must use the same profile.

Instances of this record are immutable and thread-safe.

Since:
1.0
  • Constructor Details

  • 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. 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.
    • classicSigId

      public String classicSigId()
      Returns the value of the classicSigId record component.
      Returns:
      the value of the classicSigId record component
    • pqcSigId

      public String pqcSigId()
      Returns the value of the pqcSigId record component.
      Returns:
      the value of the pqcSigId record component
    • classicSpec

      public ContextSpec classicSpec()
      Returns the value of the classicSpec record component.
      Returns:
      the value of the classicSpec record component
    • pqcSpec

      public ContextSpec pqcSpec()
      Returns the value of the pqcSpec record component.
      Returns:
      the value of the pqcSpec record component
    • verifyRule

      public HybridSignatureProfile.VerifyRule verifyRule()
      Returns the value of the verifyRule record component.
      Returns:
      the value of the verifyRule record component