PemDecodable

Specialization of Asn1Decodable, able to parse PEM-encoded strings as per RFC 1421. Use in tandem with PemEncodable.

Inheritors

Constructors

Link copied to clipboard
constructor(vararg ebStrings: String)
constructor(vararg decoders: Pair<String, (ByteArray) -> T?>)

Functions

Link copied to clipboard
open fun decodeFromDer(src: ByteArray, assertTag: Asn1Element.Tag?): T
Link copied to clipboard
open fun decodeFromDerOrNull(src: ByteArray, assertTag: Asn1Element.Tag?): T?
Link copied to clipboard
open fun decodeFromDerSafe(src: ByteArray, assertTag: Asn1Element.Tag?): KmmResult<T>
Link copied to clipboard
fun decodeFromPem(src: String): KmmResult<T>

Decodes a PEM-encoded string into T

Link copied to clipboard
open fun decodeFromTlv(src: A, assertTag: Asn1Element.Tag?): T
Link copied to clipboard
open fun decodeFromTlvOrNull(src: A, assertTag: Asn1Element.Tag?): T?
Link copied to clipboard
open fun decodeFromTlvSafe(src: A, assertTag: Asn1Element.Tag?): KmmResult<T>
Link copied to clipboard
abstract fun doDecode(src: A): T
Link copied to clipboard
open fun verifyTag(src: A, assertTag: Asn1Element.Tag?)