Record Class AlgorithmSuite
java.lang.Object
java.lang.Record
zeroecho.core.spec.AlgorithmSuite
- Record Components:
signature- exact signature-scheme identitypublicKey- exact public-key identity
public record AlgorithmSuite(AlgorithmIdentity signature, AlgorithmIdentity publicKey)
extends Record
Immutable composition of a signature scheme and a compatible public-key
identity.
The suite keeps signature and key semantics separate. In particular, an ECDSA signature identity contains its digest while the public-key identity contains the named curve. Compatibility is evaluated by capability and policy, not inferred from an X.509 signature OID.
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmSuite(AlgorithmIdentity signature, AlgorithmIdentity publicKey) Creates a validated signature suite. -
Method Summary
Modifier and TypeMethodDescriptionReturns the deterministic suite representation.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepublicKeyrecord component.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AlgorithmSuite
Creates a validated signature suite.- Throws:
NullPointerException- if an identity isnullIllegalArgumentException- if an identity has the wrong semantic kind
-
-
Method Details
-
canonicalForm
Returns the deterministic suite representation.- Returns:
- signature and key canonical identities in a length-independent form
-
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). -
signature
-
publicKey
-