package codec
Type Members
- class Asn1DecodeException extends RuntimeException
- class BerDerDecoder extends AnyRef
Decodes ASN.1 BER/DER encoded messages into Spark InternalRow values.
Decodes ASN.1 BER/DER encoded messages into Spark InternalRow values.
Decoding is schema-driven: the expected Asn1Type controls how each TLV element is interpreted and converted to its Spark SQL value.
Under AUTOMATIC / IMPLICIT TAGS modules each SEQUENCE component carries a context-specific tag
[n]. The decoder inspects these tags to correctly align present elements with their schema components even when OPTIONAL fields are absent. - class BerDerEncoder extends AnyRef
Encodes Spark InternalRow values to DER bytes using the provided ASN.1 schema.
Encodes Spark InternalRow values to DER bytes using the provided ASN.1 schema.
Returns raw byte arrays rather than BouncyCastle ASN1Encodable objects so that REAL (tag 9) can be handled without BouncyCastle support for that type.