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 Summary
Modifier and TypeMethodDescriptiondecode(byte[] encoded) Decodes complete canonical bytes.byte[]encode(AlgorithmIdentity.Parameters parameters) Encodes complete typed parameters.id()Returns the stable namespaced codec identifier.
-
Method Details
-
id
-
encode
Encodes complete typed parameters.- Parameters:
parameters- typed parameters- Returns:
- independently owned canonical bytes
-
decode
Decodes complete canonical bytes.- Parameters:
encoded- canonical bytes- Returns:
- fresh validated typed parameters
-