Record Class KeyPossessionProofPresentation
java.lang.Object
java.lang.Record
zeroecho.pki.spi.confirmation.KeyPossessionProofPresentation
- Record Components:
canonicalBytes- non-empty canonical suite presentation
Immutable bounded canonical challenge presentation produced by a proof provider.
The byte representation is suite-defined. Input and output arrays are
defensively copied, and the payload is never included in toString().
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum canonical presentation length in bytes. -
Constructor Summary
ConstructorsConstructorDescriptionKeyPossessionProofPresentation(byte[] canonicalBytes) Validates and defensively owns the presentation. -
Method Summary
-
Field Details
-
MAXIMUM_BYTES
public static final int MAXIMUM_BYTESMaximum canonical presentation length in bytes.- See Also:
-
-
Constructor Details
-
KeyPossessionProofPresentation
public KeyPossessionProofPresentation(byte[] canonicalBytes) Validates and defensively owns the presentation.- Throws:
IllegalArgumentException- if the payload is null, empty, or exceeds 2048 bytes
-
-
Method Details
-
canonicalBytes
public byte[] canonicalBytes()Returns a defensive copy of the canonical presentation.- Returns:
- canonical presentation bytes
-
equals
-
hashCode
-
toString
-