EtsiX509CertificateSerializer

class EtsiX509CertificateSerializer : KSerializer<X509Certificate?> (source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): X509Certificate?

Because the underlying parser enforces strict ASN.1 validation, parsing these "in-the-wild" certificates can throw exceptions. This catch block ensures a single malformed certificate does not crash the deserialization of the entire trusted list.

Link copied to clipboard
open override fun serialize(encoder: Encoder, value: X509Certificate?)