Interface AlgorithmIdentityCodec


public interface AlgorithmIdentityCodec
Trusted-code canonical codec for one typed algorithm-parameter schema.

Encoding takes an immediate immutable snapshot. Decoding must return fresh values or intrinsically immutable values and must reject malformed, incomplete, or contradictory input. Codec identifiers are stable semantic identity and cannot be redefined by catalog ordering or configuration.

  • Method Details

    • id

      String id()
      Returns the stable namespaced codec identifier.
      Returns:
      canonical codec identifier
    • encode

      byte[] encode(AlgorithmIdentity.Parameters parameters)
      Encodes complete typed parameters.
      Parameters:
      parameters - typed parameters
      Returns:
      independently owned canonical bytes
    • decode

      AlgorithmIdentity.Parameters decode(byte[] encoded)
      Decodes complete canonical bytes.
      Parameters:
      encoded - canonical bytes
      Returns:
      fresh validated typed parameters