Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor
Link copied to clipboard
open override val leadingTags: Set<Asn1Element.Tag>

Leading ASN.1 tags this serializer can decode/encode.

Functions

Link copied to clipboard

Casts out the evil demons that haunt OID components encoded into ASN.1 content bytes. If you want to parse human-readable OID representations, just use the ObjectIdentifier constructor!

Link copied to clipboard

Convenience method, directly DER-decoding a byte array to T

fun <A : Asn1Element, T : Asn1Encodable<A>> Asn1Decodable<A, T>.decodeFromDer(src: Source<*>, assertTag: Asn1Element.Tag? = null): T
Link copied to clipboard

Exception-free version of decodeFromDer

Link copied to clipboard
open override fun decodeFromTlv(src: Asn1Primitive, assertTag: Asn1Element.Tag?): ObjectIdentifier

Processes an A, parsing it into an instance of T

Link copied to clipboard
fun <A : Asn1Element, T : Asn1Encodable<A>> Asn1Decodable<A, T>.decodeFromTlvOrNull(src: A, assertTag: Asn1Element.Tag? = null): T?

Exception-free version of Asn1Decodable.decodeFromTlv

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

Decodes one ASN.1-backed value via DER bytes.

Link copied to clipboard
open override fun doDecode(src: Asn1Primitive): ObjectIdentifier

Actual element-specific decoding function. By default, this is invoked after verifyTag

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

Encodes one ASN.1-backed value via DER bytes.

Link copied to clipboard
open override fun verifyTag(src: Asn1Primitive, assertTag: Asn1Element.Tag?)

Specify assertTag for verifying implicitly tagged elements' tags (and better not override this function).