LenientBitString

@Serializable(with = LenientBitString.Companion::class)
data class LenientBitString : Asn1Encodable<Asn1Primitive> (source)

BIT STRING wrapper that preserves malformed (non-zeroed-out) padding bits.

Types

Link copied to clipboard
object Companion : Asn1Serializer<Asn1Primitive, LenientBitString>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val strict: Asn1BitString

Parses and validates this lenient bit string into a strict Asn1BitString.

Link copied to clipboard
val LenientBitString.strictOrNull: Asn1BitString?

Non-throwing variante of LenientBitString.strict that returns null if the bit string is malformed.

Functions

Link copied to clipboard
open override fun encodeToTlv(): Asn1Primitive
Link copied to clipboard
Link copied to clipboard
open infix fun withImplicitTag(tag: Asn1Element.Tag): Asn1Element
open infix fun withImplicitTag(template: Asn1Element.Tag.Template): Asn1Element
open infix fun withImplicitTag(tagValue: ULong): Asn1Element