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- optionalContextSpecfor the classical signature engine; may benullpqcSpec- optionalContextSpecfor the post-quantum signature engine; may benullverifyRule- 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVerification aggregation rule for hybrid signatures. -
Constructor Summary
ConstructorsConstructorDescriptionHybridSignatureProfile(String classicSigId, String pqcSigId, ContextSpec classicSpec, ContextSpec pqcSpec, HybridSignatureProfile.VerifyRule verifyRule) Canonical constructor with invariant checks. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassicSigIdrecord component.Returns the value of theclassicSpecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pqcSigId()Returns the value of thepqcSigIdrecord component.pqcSpec()Returns the value of thepqcSpecrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverifyRulerecord component.
-
Constructor Details
-
HybridSignatureProfile
public HybridSignatureProfile(String classicSigId, String pqcSigId, ContextSpec classicSpec, ContextSpec pqcSpec, HybridSignatureProfile.VerifyRule verifyRule) Canonical constructor with invariant checks.Uses
Objects.requireNonNull(Object, String)to enforce mandatory components while keeping validation idiomatic and consistent with the rest of the ZeroEcho codebase.- Throws:
NullPointerException- ifclassicSigId,pqcSigId, orverifyRuleisnull
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
classicSigId
Returns the value of theclassicSigIdrecord component.- Returns:
- the value of the
classicSigIdrecord component
-
pqcSigId
-
classicSpec
Returns the value of theclassicSpecrecord component.- Returns:
- the value of the
classicSpecrecord component
-
pqcSpec
-
verifyRule
Returns the value of theverifyRulerecord component.- Returns:
- the value of the
verifyRulerecord component
-